Function at 0x415bec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fa0f1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5415b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp + 8]
movzx eax, ax
push 0xf0
push eax
push dword [0x547680]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
mov dword [esp + 0x28], ecx
test eax, eax
je 0x415c6f
push eax
push dword [0x547680]
call ebx
test eax, eax
je 0x415c6f
push eax
call esi
mov dword [esp + 0x28], eax
push 5
push dword [esp + 0x14]
push dword [0x547680]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415f9b
push eax
push dword [0x547680]
call ebx
test eax, eax
je 0x415f94
push eax
call esi
test eax, eax
je 0x415f94
movzx ecx, word [eax + 2]
xor edx, edx
mov esi, 0xffff
cmp cx, si
sete dl
cmp cx, si
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
je 0x415cc5
lea ecx, [eax + 8]
movzx esi, word [ecx]
mov ecx, eax
mov dword [esp + 0x34], esi
call fcn.0041b57f
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
xor eax, eax
cmp ax, si
jae 0x415f9b
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x415d04
mov edx, dword [ebx + 0x14]
jmp 0x415d08
movzx edx, word [ebx + 0x10]
test ecx, ecx
lea esi, [ebx + 0x12]
lea eax, [ebx + 0x18]
cmovne esi, eax
mov dword [esp + 0x30], esi
cmp word [esi], 0x7b
jne 0x415f2a
mov eax, dword [esp + 0x28]
mov ecx, eax
and dword [esp + 0x10], 0
test eax, eax
je 0x415d4f
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
movzx edi, word [ecx]
mov esi, dword [ecx + 2]
add ecx, 6
cmp eax, edx
je 0x415de4
add ecx, esi
jne 0x415d30
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x14], ecx
and dword [esp + 0x58], ecx
test esi, esi
je 0x415daf
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x415f6e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x415f65
push esi
push dword [esp + 0x14]
push esi
push eax
call fcn.004d5e3e
push eax
call fcn.00402c37
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x14]
and dword [esp + 0x18], 0
lea edx, [esp + 0x18]
mov byte [esp + 0x58], 1
call fcn.0041b3a2
mov edi, eax
test edi, edi
js 0x415f0b
and dword [esp + 0x10], 0
call fcn.0041b151
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x415e02
movzx eax, word [ebx + 0xc]
jmp 0x415e06
mov eax, 0x378
cmp di, ax
je 0x415d4f
mov eax, dword [esp + 0x18]
add esi, 6
mov dword [esp + 0x10], eax
jmp 0x415d51
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x38], edx
test ecx, ecx
je 0x415e17
movzx eax, word [ebx + 0xe]
jmp 0x415e1b
movzx eax, word [ebx + 0xa]
movsx esi, ax
mov dword [esp + 0x3c], esi
test ecx, ecx
je 0x415e2c
movzx eax, word [ebx + 0x10]
jmp 0x415e30
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x415e41
movzx eax, word [ebx + 0x12]
jmp 0x415e45
movzx eax, word [ebx + 0xe]
cwde
add eax, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x415e6b
mov edx, dword [ebx + 0x14]
jmp 0x415e6f
movzx edx, word [ebx + 0x10]
test edi, edi
je 0x415e78
mov ecx, dword [ebx + 4]
jmp 0x415e7a
xor ecx, ecx
test edi, edi
je 0x415e83
mov eax, dword [ebx + 8]
jmp 0x415e85
mov eax, dword [ebx]
push ecx
push edx
push ecx
or eax, 0x10000
lea ecx, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x4c]
push eax
push dword [esi + 4]
push 0x50fdb0
call fcn.0041b2f3
mov esi, dword [esp + 0x10]
test esi, esi
je 0x415f04
test edi, edi
je 0x415ec0
cmp dword [ebx], 0
je 0x415ec0
push dword [ebx]
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x18]
lea ecx, [esp + 0x14]
sub esp, 0x10
push dword [esp + 0x28]
push dword [esp + 0x48]
call fcn.00415fbd
mov edi, eax
test edi, edi
js 0x415f75
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp word [esp + 0x1c], cx
push 0x13
push ecx
push ecx
push ecx
push ecx
cmove eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x24], esi
jmp 0x415f0b
call fcn.0041b568
mov edi, eax
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415f42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x415f42
cmp word [esp + 0x1c], 0
je 0x415f42
push 2
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0041b345
mov ebx, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp ax, word [esp + 0x34]
jb 0x415cf7
jmp 0x415f9b
call fcn.0041b568
mov edi, eax
jmp 0x415f7f
mov edi, 0x8007000e
jmp 0x415f7f
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415f9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x415f9b
call fcn.0041b568
mov edi, eax
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret 4