Function at 0x4387d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5180f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
movzx esi, word [ebp + 8]
mov eax, dword [0x553cf4]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push esi
mov ebx, ecx
push eax
mov dword [esp + 0x40], ebx
call edi
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x438850
mov ecx, dword [0x553cf4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x438850
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x30], eax
mov edx, dword [0x553cf4]
push 5
push esi
push edx
call edi
test eax, eax
je 0x438ba5
push eax
mov eax, dword [0x553cf4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x438b9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x438b9c
movzx ecx, word [eax + 2]
mov dword [esp + 0x20], eax
xor eax, eax
mov edx, 0xffff
cmp cx, dx
sete al
cmp cx, dx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x10]
je 0x4388b0
lea ecx, [eax + 8]
movzx esi, word [ecx]
mov ecx, eax
mov dword [esp + 0x3c], esi
call fcn.00421cf0
mov edi, eax
mov eax, dword [ebx + 4]
push 5
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_GetWindow]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
cmp cx, si
jae 0x438ba5
jmp 0x4388f4
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x24], 0
je 0x438903
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x18]
jmp 0x43890a
movzx ecx, word [edi + 0x10]
lea eax, [edi + 0x12]
cmp word [eax], 0x7b
jne 0x438b13
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
mov ebx, ecx
mov dword [esp + 0x1c], 0
call fcn.00421ca0
mov ebx, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
cmp ebx, eax
je 0x438989
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x438b71
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x438b4e
mov ecx, dword [esp + 0x18]
push eax
mov eax, ebx
mov edx, ebx
call fcn.00421bd0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor eax, eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
mov esi, dword [esp + 0x14]
push ecx
call fcn.004219b0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
js 0x438aee
mov dword [esp + 0x10], 0
call fcn.00420680
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4389d1
movzx eax, word [edi + 0xc]
lea edx, [edi + 0x18]
mov dword [esp + 0x20], edx
jmp 0x4389dc
lea eax, [edi + 0x12]
mov dword [esp + 0x20], eax
movzx eax, word [edi + 8]
movsx edx, ax
mov dword [esp + 0x40], edx
test esi, esi
je 0x4389ed
movzx eax, word [edi + 0xe]
jmp 0x4389f1
movzx eax, word [edi + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x438a02
movzx eax, word [edi + 0x10]
jmp 0x438a06
movzx eax, word [edi + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x438a17
movzx eax, word [edi + 0x12]
jmp 0x438a1b
movzx eax, word [edi + 0xe]
mov ebx, dword [esp + 0x34]
movsx edx, ax
add edx, ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x54], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x438a46
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
jmp 0x438a4e
movzx esi, word [edi + 0x10]
mov eax, dword [edi]
xor edx, edx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
or eax, 0x10000
push eax
push ecx
mov eax, esp
mov dword [ecx], esi
lea edx, [esp + 0x50]
mov dword [eax], edx
mov eax, dword [ebx + 4]
mov dword [esp + 0x48], esp
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00418e30
mov esi, dword [esp + 0x10]
test esi, esi
je 0x438ae5
cmp dword [esp + 0x24], 0
je 0x438a96
mov edi, dword [edi]
test edi, edi
je 0x438a96
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00419510
mov dword [esp + 0x10], eax
test eax, eax
js 0x438b7b
cmp word [esp + 0x28], 0
jne 0x438ac5
xor eax, eax
jmp 0x438ac9
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 edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
jmp 0x438aee
call fcn.00421c80
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x438b29
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x438b29
test dx, dx
je 0x438b29
mov ecx, dword [esp + 0x1c]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x24]
mov eax, edi
call fcn.00421940
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
cmp dx, word [esp + 0x3c]
jb 0x4388f0
jmp 0x438ba5
call fcn.00421c80
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x438ba5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x438ba5
mov dword [esp + 0x10], 0x8007000e
jmp 0x438b82
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x438ba5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x438ba5
call fcn.00421c80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 4