Function at 0x10041c44
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a436
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov dword [ebp - 0x80], 0x236c
cmp dword [ebp - 0x80], 0xe14
jge 0x10041cf1
xorpd xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x20]
push eax
push 0x10007dfc
call fcn.1004fe8b
pop ecx
pop ecx
push 0
push 3
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.10068dd0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x88]
or eax, dword [ebp - 0x84]
jne 0x10041ccb
push 0
push 3
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.10068d20
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x10041c8b
mov eax, dword [ebp - 0x20]
add eax, 2
mov ecx, dword [ebp - 0x1c]
adc ecx, 0
push 0
push 3
push ecx
push eax
call fcn.10068d20
push edx
push eax
push 0x10007890
call fcn.1005018c
add esp, 0xc
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10041f79
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10041f2c
mov dword [ebp - 0x5c], 0x1d9f
cmp dword [ebp - 0x5c], 0x10ed
jge 0x10041f22
mov dword [ebp - 0xa8], 0xf4247
lea eax, [ebp - 0x38]
push eax
push 0x1000785c
call fcn.1004fe8b
pop ecx
pop ecx
lea ecx, [ebp - 0x90]
call fcn.10049515
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x28], 0
jmp 0x10041d6b
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jge 0x10041db7
lea eax, [ebp - 0x24]
push eax
push 0x1000785c
call fcn.1004fe8b
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x90]
call fcn.1004952a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
jle 0x10041da9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x10041daf
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x10041d64
movsd xmm0, qword [0x10007fe8]
movsd qword [ebp - 0x34], xmm0
movsd xmm0, qword [0x10008008]
movsd qword [ebp - 0x50], xmm0
movsd xmm0, qword [0x10007fc8]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 1
jmp 0x10041dee
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x10041eb3
cvtsi2sd xmm0, dword [ebp - 0x10]
addsd xmm0, qword [0x10007fe8]
movsd xmm1, qword [ebp - 0x40]
addsd xmm1, qword [0x10007fe8]
divsd xmm0, xmm1
movsd qword [ebp - 0x48], xmm0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x90]
call fcn.10049548
test eax, eax
je 0x10041e79
movsd xmm0, qword [ebp - 0x48]
comisd xmm0, xmmword [ebp - 0x50]
jbe 0x10041e4b
movsd xmm0, qword [ebp - 0x50]
movsd qword [ebp - 0xa4], xmm0
jmp 0x10041e58
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0xa4], xmm0
movsd xmm0, qword [ebp - 0xa4]
movsd qword [ebp - 0x50], xmm0
movsd xmm0, qword [ebp - 0x40]
addsd xmm0, qword [0x10007fe8]
movsd qword [ebp - 0x40], xmm0
jmp 0x10041eae
movsd xmm0, qword [ebp - 0x34]
comisd xmm0, xmmword [ebp - 0x48]
jbe 0x10041e94
movsd xmm0, qword [ebp - 0x34]
movsd qword [ebp - 0x9c], xmm0
jmp 0x10041ea1
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x9c], xmm0
movsd xmm0, qword [ebp - 0x9c]
movsd qword [ebp - 0x34], xmm0
jmp 0x10041de7
mov eax, dword [ebp - 0x38]
inc eax
cvtsi2sd xmm0, eax
movsd xmm1, qword [ebp - 0x50]
subsd xmm1, qword [ebp - 0x34]
mulsd xmm0, xmm1
comisd xmm0, xmmword [0x10007fe8]
jb 0x10041ee0
push 0x10007f3c
call fcn.100507b6
pop ecx
jmp 0x10041f13
push 0x10007f48
call fcn.100507b6
pop ecx
movsd xmm0, qword [0x10007fe8]
addsd xmm0, qword [ebp - 0x40]
mulsd xmm0, qword [ebp - 0x34]
cvttsd2si eax, xmm0
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
push 0x10007888
call fcn.1005018c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.100226e8
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x10041f77
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10041f5a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
jge 0x10041f77
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.1000f296
mov dword [eax], 0xb19f88dd
jmp 0x10041f4f
jmp 0x10041fc4
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x94], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x10041fba
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10041fb8
push 0x13d2
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x10041fc4
push 0
push 0
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret