Function at 0x487bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4cb1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50b384]
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 [0x510084]
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 0x487c23
mov ecx, dword [0x510084]
push eax
push ecx
call ebp
test eax, eax
je 0x487c23
push eax
call ebx
mov dword [esp + 0x28], eax
mov edx, dword [0x510084]
push 5
push esi
push edx
call edi
xor esi, esi
cmp eax, esi
je 0x487f4d
push eax
mov eax, dword [0x510084]
push eax
call ebp
cmp eax, esi
je 0x487f44
push eax
call ebx
cmp eax, esi
je 0x487f44
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 0x487c75
lea ecx, [eax + 8]
movzx edi, word [ecx]
push eax
mov dword [esp + 0x34], edi
call fcn.0047a1e0
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 0x487f4d
cmp ebx, esi
je 0x487cb8
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
jmp 0x487cbf
movzx ecx, word [ebp + 0x10]
lea eax, [ebp + 0x12]
cmp word [eax], 0x7b
jne 0x487ec5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
mov dword [esp + 0x64], esi
call fcn.0047c4b0
add esp, 0xc
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], esi
cmp edi, esi
je 0x487d35
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x487f01
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x58]
push edi
push ecx
push edi
push eax
call fcn.0048e6bc
push eax
call fcn.00403f91
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.0047aff0
mov ebx, dword [esp + 0x34]
add esp, 8
cmp eax, esi
mov dword [esp + 0x58], eax
jl 0x487ea4
mov dword [esp + 0x58], esi
call fcn.00485580
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x487d7a
movzx eax, word [ebp + 0xc]
lea edi, [ebp + 0x18]
jmp 0x487d81
movzx eax, word [ebp + 8]
lea edi, [ebp + 0x12]
movsx edx, ax
mov dword [esp + 0x38], edx
cmp ecx, esi
je 0x487d92
movzx eax, word [ebp + 0xe]
jmp 0x487d96
movzx eax, word [ebp + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x14], esi
je 0x487da9
movzx eax, word [ebp + 0x10]
jmp 0x487dad
movzx eax, word [ebp + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x14], esi
je 0x487dc0
movzx eax, word [ebp + 0x12]
jmp 0x487dc4
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 0x487df1
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
jmp 0x487dfa
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.0047c600
mov esi, dword [esp + 0x58]
test esi, esi
je 0x487e99
cmp dword [esp + 0x14], 0
je 0x487e4a
mov eax, dword [ebp]
test eax, eax
je 0x487e4a
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov ecx, dword [esp + 0x18]
push ebx
push 0
push 0x4d0b80
push 0
push 0
push ecx
push edi
lea ecx, [esp + 0x74]
call fcn.00484870
mov dword [esp + 0x58], eax
test eax, eax
jl 0x487f23
cmp word [esp + 0x24], 0
jne 0x487e7d
xor eax, eax
jmp 0x487e81
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 0x487ea2
call fcn.004062c5
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 0x487edb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x487edb
cmp dx, si
je 0x487edb
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.0047a280
mov edx, dword [esp + 0x2c]
inc edx
add esp, 8
mov ebp, eax
mov dword [esp + 0x24], edx
cmp dx, word [esp + 0x30]
jb 0x487cac
jmp 0x487f4d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], 0x8007000e
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x487f4d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x487f4d
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x487f4d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x487f4d
call fcn.004062c5
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