Function at 0x487270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4ca4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
movzx esi, word [esp + 0x58]
mov eax, dword [0x50e074]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push esi
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], ecx
cmp eax, ecx
je 0x4872e3
mov ecx, dword [0x50e074]
push eax
push ecx
call ebp
test eax, eax
je 0x4872e3
push eax
call ebx
mov dword [esp + 0x28], eax
mov edx, dword [0x50e074]
push 5
push esi
push edx
call edi
xor esi, esi
cmp eax, esi
je 0x48760d
push eax
mov eax, dword [0x50e074]
push eax
call ebp
cmp eax, esi
je 0x487604
push eax
call ebx
cmp eax, esi
je 0x487604
movzx ecx, word [eax + 2]
xor ebx, ebx
mov edx, 0xffff
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], ebx
je 0x487335
lea ecx, [eax + 8]
movzx edi, word [ecx]
push eax
mov dword [esp + 0x34], edi
call fcn.004799b0
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x24], edx
cmp ax, di
jae 0x48760d
cmp ebx, esi
je 0x487378
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
jmp 0x48737f
movzx ecx, word [ebp + 0x10]
lea eax, [ebp + 0x12]
cmp word [eax], 0x7b
jne 0x487585
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
mov dword [esp + 0x64], esi
call fcn.0047bc60
add esp, 0xc
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], esi
cmp edi, esi
je 0x4873f5
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4875c1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x58]
push edi
push ecx
push edi
push eax
call fcn.0048dd4c
push eax
call fcn.0040414a
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x18]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x58], 1
call fcn.0047a7a0
mov ebx, dword [esp + 0x34]
add esp, 8
cmp eax, esi
mov dword [esp + 0x58], eax
jl 0x487564
mov dword [esp + 0x58], esi
call fcn.00484c40
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x48743a
movzx eax, word [ebp + 0xc]
lea edi, [ebp + 0x18]
jmp 0x487441
movzx eax, word [ebp + 8]
lea edi, [ebp + 0x12]
movsx edx, ax
mov dword [esp + 0x38], edx
cmp ecx, esi
je 0x487452
movzx eax, word [ebp + 0xe]
jmp 0x487456
movzx eax, word [ebp + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x14], esi
je 0x487469
movzx eax, word [ebp + 0x10]
jmp 0x48746d
movzx eax, word [ebp + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x14], esi
je 0x487480
movzx eax, word [ebp + 0x12]
jmp 0x487484
movzx eax, word [ebp + 0xe]
movsx edx, ax
add edx, ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_MapDialogRect]
cmp dword [esp + 0x14], esi
je 0x4874b1
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
jmp 0x4874ba
movzx esi, word [ebp + 0x10]
mov eax, dword [ebp]
xor edx, edx
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov edx, dword [esp + 0x2c]
or eax, 0x10000
push eax
push 0
push ecx
mov dword [ecx], esi
mov eax, esp
lea ecx, [esp + 0x50]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [esp + 0x4c], esp
push eax
lea ecx, [esp + 0x74]
call fcn.0047bdb0
mov esi, dword [esp + 0x58]
test esi, esi
je 0x487559
cmp dword [esp + 0x14], 0
je 0x48750a
mov eax, dword [ebp]
test eax, eax
je 0x48750a
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov ecx, dword [esp + 0x18]
push ebx
push 0
push 0x4cfb90
push 0
push 0
push ecx
push edi
lea ecx, [esp + 0x74]
call fcn.00483f40
mov dword [esp + 0x58], eax
test eax, eax
jl 0x4875e3
cmp word [esp + 0x24], 0
jne 0x48753d
xor eax, eax
jmp 0x487541
mov eax, dword [esp + 0x1c]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x1c], esi
jmp 0x487562
call fcn.00406570
mov dword [esp + 0x58], eax
xor esi, esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
cmp eax, esi
je 0x48759b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x48759b
cmp dx, si
je 0x48759b
mov ecx, dword [esp + 0x1c]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x14]
push ebx
push ebp
call fcn.00479a50
mov edx, dword [esp + 0x2c]
inc edx
add esp, 8
mov ebp, eax
mov dword [esp + 0x24], edx
cmp dx, word [esp + 0x30]
jb 0x48736c
jmp 0x48760d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 0x8007000e
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x48760d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x48760d
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x48760d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x48760d
call fcn.00406570
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4