Function at 0x1040ff3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
test esi, esi
je 0x1041018b
call fcn.103eb9ed
push 0xf1
mov ebx, dword [eax + 0xc]
movzx eax, si
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10410187
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10410187
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10410187
movzx eax, word [ebx + 6]
push 4
pop ecx
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.103f8c15
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x1041018b
movzx eax, word [ebx + 2]
movzx ecx, word [ebx + 4]
mov dword [ebp - 0x18], eax
add eax, 6
mov dword [ebp - 0x14], ecx
add ecx, 6
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ecx
je 0x1040ffe8
mov edx, dword [edi + 0xc30]
jmp 0x1040ffee
mov edx, dword [0x105a5d38]
test edx, edx
jne 0x10410069
call fcn.103d8de7
fld1
cmp dword [eax + 0x1e8], 0
je 0x1041000a
fld qword [eax + 0x1e0]
jmp 0x1041000c
fld st(0)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10410063
call fcn.103d8de7
cmp dword [eax + 0x1e8], 0
je 0x1041002b
fld qword [eax + 0x1e0]
jmp 0x1041002d
fld1
fild dword [ebp - 0x24]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul st(1)
fld qword [0x10551aa8]
fadd st(1), st(0)
fxch st(1)
call fcn.1051df50
fild dword [ebp - 0x20]
mov dword [ebp - 4], eax
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmulp st(2)
faddp st(1)
call fcn.1051df50
mov ecx, eax
mov dword [ebp - 0xc], eax
jmp 0x10410066
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
je 0x10410082
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push eax
mov ecx, edi
call fcn.10416126
jmp 0x104100a2
mov ecx, 0x105a5e08
call fcn.1040780d
test eax, eax
jne 0x104100a2
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push eax
call fcn.1041649a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
cmp dword [ecx + 4], 0
jne 0x104100b5
mov dword [ecx + 4], esi
cmp dword [edi + 0xd18], 0
jne 0x104100de
mov eax, dword [edi]
push dword [ebp + 0x10]
push ecx
mov esi, dword [eax + 0x334]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
test eax, eax
je 0x10410174
mov eax, dword [edi + 0xc04]
xor ecx, ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
cmp ax, word [ebx + 6]
jae 0x1041013e
mov esi, dword [ebp - 8]
lea edx, [ebx + 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0x10], 0
movzx eax, word [edx]
mov dword [esi + ecx*4], eax
jne 0x10410129
test eax, eax
je 0x10410129
mov esi, edi
mov ecx, 0x1059e52c
push eax
inc edi
call fcn.1040459c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax], esi
mov esi, dword [ebp - 8]
movzx eax, word [ebx + 6]
inc ecx
add edx, 2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
cmp ecx, eax
jl 0x10410100
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [edi + 0xd18], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x33c]
xor eax, eax
inc eax
mov ecx, esi
push eax
movzx eax, word [ebx + 6]
push eax
push dword [ebp - 8]
call dword [0x1054c9a0]
mov ecx, edi
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10410174
and dword [edi + 0xd18], eax
push dword [ebp - 8]
call fcn.103f8c1e
mov eax, dword [ebp - 0x18]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x10410180
call fcn.103e75f7
int3