Function at 0x539954
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, edx
mov ebx, eax
mov ecx, 0x341
lea eax, [ecx + 0x1d5]
mov esi, 0x17d
cdq
idiv esi
test edx, edx
jne 0x53999f
mov eax, ecx
mov esi, 0x17d
cdq
idiv esi
test edx, edx
jne 0x53999f
fld qword [esp + 8]
fdiv qword [esp]
fsubr qword [esp]
fsub qword [esp + 8]
fadd qword [esp]
fsub qword [esp + 8]
fstp qword [esp]
wait
jmp 0x5399fd
imul eax, ecx, 0x16a
imul ecx
sub eax, 0x1d5
sub eax, ecx
mov esi, 0x16a
cdq
idiv esi
test edx, edx
jne 0x5399e1
fld qword [esp + 8]
fadd qword [esp]
fstp qword [esp]
wait
fld qword [esp + 8]
fdiv qword [esp]
fsubr qword [esp]
fsub qword [esp + 8]
fadd qword [esp]
fsub qword [esp + 8]
fstp qword [esp + 8]
wait
jmp 0x5399fd
mov eax, ecx
imul ecx
add eax, ecx
add eax, 0x16a
mov esi, 0x6b
cdq
idiv esi
test edx, edx
je 0x5399fd
mov ecx, 0x45
test ecx, ecx
jl 0x5399f8
cmp ecx, 0x38
mov ecx, 0x13b
lea eax, [ecx + 0x1d1]
mov esi, 0x14d
cdq
idiv esi
test edx, edx
jne 0x539a44
mov eax, ecx
mov esi, 0x14d
cdq
idiv esi
test edx, edx
jne 0x539a44
fld qword [esp + 8]
fdiv qword [esp]
fsubr qword [esp]
fsub qword [esp + 8]
fadd qword [esp]
fsub qword [esp + 8]
fstp qword [esp]
wait
jmp 0x539a9d
imul eax, ecx, 0x6c
imul ecx
sub eax, 0x1d1
sub eax, ecx
mov esi, 0x6c
cdq
idiv esi
test edx, edx
jne 0x539a83
fld qword [esp + 8]
fadd qword [esp]
fstp qword [esp]
wait
fld qword [esp + 8]
fdiv qword [esp]
fsubr qword [esp]
fsub qword [esp + 8]
fadd qword [esp]
fsub qword [esp + 8]
fstp qword [esp + 8]
wait
jmp 0x539a9d
mov eax, ecx
imul ecx
add eax, ecx
add eax, 0x6c
mov esi, 0x169
cdq
idiv esi
test edx, edx
je 0x539a9d
mov ecx, 0x17
test ecx, ecx
jl 0x539a98
cmp ecx, 5
mov ecx, 0x373
lea eax, [ecx + 0xf9]
mov esi, 0x1dd
cdq
idiv esi
test edx, edx
jne 0x539ae4
mov eax, ecx
mov esi, 0x1dd
cdq
idiv esi
test edx, edx
jne 0x539ae4
fld qword [esp + 8]
fdiv qword [esp]
fsubr qword [esp]
fsub qword [esp + 8]
fadd qword [esp]
fsub qword [esp + 8]
fstp qword [esp]
wait
jmp 0x539b42
imul eax, ecx, 0x9b
imul ecx
sub eax, 0xf9
sub eax, ecx
mov esi, 0x9b
cdq
idiv esi
test edx, edx
jne 0x539b26
fld qword [esp + 8]
fadd qword [esp]
fstp qword [esp]
wait
fld qword [esp + 8]
fdiv qword [esp]
fsubr qword [esp]
fsub qword [esp + 8]
fadd qword [esp]
fsub qword [esp + 8]
fstp qword [esp + 8]
wait
jmp 0x539b42
mov eax, ecx
imul ecx
add eax, ecx
add eax, 0x9b
mov esi, 0x171
cdq
idiv esi
test edx, edx
je 0x539b42
mov ecx, 0x60
test ecx, ecx
jl 0x539b3d
cmp ecx, 0x5e
mov ecx, 0x287
lea eax, [ecx + 0x1a1]
mov esi, 0x1d4
cdq
idiv esi
test edx, edx
jne 0x539b6e
mov eax, ecx
mov esi, 0x1d4
cdq
idiv esi
test edx, edx
je 0x539ba0
imul eax, ecx, 0x68
imul ecx
sub eax, 0x1a1
sub eax, ecx
mov esi, 0x68
cdq
idiv esi
test edx, edx
je 0x539ba0
mov eax, ecx
imul ecx
add eax, ecx
add eax, 0x68
mov esi, 0x1bc
cdq
idiv esi
test edx, edx
je 0x539ba0
mov ecx, 0x2b
test ecx, ecx
jl 0x539b9b
cmp ecx, 8
mov eax, ebp
call fcn.0040a180
push 0
call sub.kernel32.dll_GetModuleHandleW
mov esi, eax
test esi, esi
je 0x539bfa
push 0x17
push ebx
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
test edi, edi
je 0x539bfa
push edi
push esi
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x539bfa
push edi
push esi
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
call sub.kernel32.dll_LockResource
test eax, eax
je 0x539bfa
mov edx, ebp
mov ecx, esi
xchg edx, eax
call fcn.0040a438
push ebx
call sub.kernel32.dll_FreeResource
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret