Function at 0x4062b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4493b2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45e480]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e480]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
cmp byte [ebp + 0x38], 0
mov ebx, ecx
jne 0x406320
cmp dword [ebp + 0x18], 0x10
jb 0x4062f9
mov eax, dword [ebp + 4]
jmp 0x4062fc
lea eax, [ebp + 4]
xor edi, edi
push edi
push eax
call fcn.004310a9
add esp, 8
cmp eax, 0xffffffff
jne 0x406322
mov eax, dword [ebx]
mov dword [eax + 0x340], 3
xor al, al
jmp 0x4065a2
xor edi, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
mov dword [esp + 0x6c], edi
cmp byte [ebp + 0x38], 0
mov dword [esp + 0x18], edi
je 0x40642e
push 0x45025c
push 0x96
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
jne 0x406389
mov ebx, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov dword [ebx + 0x340], 5
mov dword [esp + 0x70], 0xffffffff
call fcn.00412880
xor al, al
jmp 0x4065a2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4063ba
mov ebx, dword [ebx]
mov dword [ebx + 0x340], 5
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x70], 0xffffffff
call fcn.00412880
xor al, al
jmp 0x4065a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x4063ee
mov ebx, dword [ebx]
lea eax, [esp + 0x3c]
push eax
mov dword [ebx + 0x340], 5
mov dword [esp + 0x70], 0xffffffff
call fcn.00412880
xor al, al
jmp 0x4065a2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, edi
jbe 0x406364
push esi
call fcn.00413f49
mov edx, dword [esp + 0x18]
add esp, 4
push esi
mov edi, eax
push edx
push edi
mov dword [esp + 0x24], edi
call fcn.004376c0
add esp, 0xc
push esi
mov ecx, edi
lea esi, [esp + 0x40]
call fcn.00412ac0
xor edi, edi
jmp 0x40645e
cmp dword [ebp + 0x18], 0x10
jb 0x406439
mov edx, dword [ebp + 4]
jmp 0x40643c
lea edx, [ebp + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406441
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.00402db0
lea esi, [esp + 0x3c]
call fcn.00412930
mov ecx, dword [ebp + 0x4c]
sub ecx, dword [ebp + 0x48]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], edi
je 0x40657d
mov dword [esp + 0x14], edi
mov ecx, dword [ebp + 0x4c]
sub ecx, dword [ebp + 0x48]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x1c], ecx
jb 0x4064a9
call fcn.00431010
mov eax, dword [ebp + 0x48]
add eax, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
lea esi, [ebx + 0x94]
push eax
mov ecx, esi
call fcn.00402740
fldz
inc dword [ebx + 0x90]
fstp dword [ebx + 0xb0]
lea eax, [ebx + 0x3c]
push esi
push eax
lea edi, [esp + 0x28]
call fcn.00403780
add esp, 8
mov byte [esp + 0x6c], 1
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp dword [esp + 0x38], edi
jae 0x4064f8
lea eax, [esp + 0x24]
cmp dword [esi + 0x18], edi
jb 0x406502
mov edx, dword [esi + 4]
jmp 0x406505
lea edx, [esi + 4]
push eax
lea ecx, [esp + 0x40]
call fcn.004129d0
push eax
mov esi, ebx
call fcn.00406770
test al, al
je 0x4065c3
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x38], edi
jb 0x406537
mov edx, dword [esp + 0x24]
push edx
call fcn.00413f54
add esp, 4
mov ecx, dword [ebp + 0x4c]
sub ecx, dword [ebp + 0x48]
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
xor edi, edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x1c], esi
cmp esi, eax
jb 0x406485
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40658e
push eax
call fcn.00413f54
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x70], 0xffffffff
call fcn.00412880
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00430bbd
add esp, 0x5c
ret 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4065d4
push eax
call fcn.00413f54
add esp, 4
cmp dword [esp + 0x38], edi
jb 0x4065e7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00413f54
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jmp 0x4063a1