Function at 0x4c08b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d200
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
push 0xf0
movzx ebx, ax
push ebx
push dword [0x5dea40]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x4c0927
push eax
push dword [0x5dea40]
call edi
test eax, eax
je 0x4c0927
push eax
call esi
mov dword [ebp - 0x48], eax
push 5
push ebx
push dword [0x5dea40]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c0ccf
push eax
push dword [0x5dea40]
call edi
test eax, eax
je 0x4c0cc1
push eax
call esi
test eax, eax
je 0x4c0cc1
movzx ecx, word [eax + 2]
xor edx, edx
mov esi, 0xffff
cmp cx, si
sete dl
cmp cx, si
mov dword [ebp - 0x34], edx
lea ecx, [eax + 0x10]
je 0x4c0979
lea ecx, [eax + 8]
movzx ecx, word [ecx]
push eax
mov dword [ebp - 0x4c], ecx
call fcn.00465540
mov edi, dword [sym.imp.USER32.dll_GetWindow]
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x44]
push 5
push dword [eax + 4]
call edi
mov esi, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], edx
cmp ax, word [ebp - 0x4c]
jae 0x4c0ccf
cmp dword [ebp - 0x34], 0
je 0x4c09be
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x4c09c5
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x4c0c4f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004654f0
xor ecx, ecx
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
test edi, edi
je 0x4c0a41
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4c0c81
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4c0c60
push edi
push dword [ebp - 0x2c]
push edi
push eax
call fcn.0052628b
push eax
call fcn.0045a7e0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push ecx
call fcn.00469b50
mov edi, dword [ebp - 0x54]
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
test esi, esi
js 0x4c0c04
mov dword [ebp - 0x24], 0
call fcn.0046d760
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x4c0a88
movzx eax, word [ebx + 0xc]
lea esi, [ebx + 0x18]
mov dword [ebp - 0x2c], esi
jmp 0x4c0a92
lea eax, [ebx + 0x12]
mov dword [ebp - 0x2c], eax
movzx eax, word [ebx + 8]
movsx ecx, ax
mov dword [ebp - 0x20], ecx
test edx, edx
je 0x4c0aa2
movzx eax, word [ebx + 0xe]
jmp 0x4c0aa6
movzx eax, word [ebx + 0xa]
mov esi, dword [ebp - 0x34]
movsx edx, ax
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x4c0ab9
movzx eax, word [ebx + 0x10]
jmp 0x4c0abd
movzx eax, word [ebx + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4c0acd
movzx eax, word [ebx + 0x12]
jmp 0x4c0ad1
movzx eax, word [ebx + 0xe]
cwde
add eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x4c0af6
mov edx, dword [ebx + 0x14]
mov esi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
jmp 0x4c0afe
movzx edx, word [ebx + 0x10]
xor esi, esi
mov ecx, dword [ebx]
push 0
push ecx
mov eax, esp
or ecx, 0x10000
push esi
push ecx
push 0
push ecx
mov dword [eax], edx
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
call fcn.00463b50
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4c0bfc
cmp dword [ebp - 0x34], 0
je 0x4c0b44
mov eax, dword [ebx]
test eax, eax
je 0x4c0b44
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
push 0x57b224
lea ecx, [ebp - 0x24]
call fcn.0046a570
test eax, eax
jns 0x4c0b87
push edi
push 0
push 0x594488
push 0
push 0
push dword [ebp - 0x38]
push esi
push dword [ebp - 0x2c]
call fcn.0046d660
mov dword [ebp - 0x24], eax
jmp 0x4c0bc2
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x50]
push edi
push 0
push 0x594488
mov ecx, dword [eax]
push edx
push dword [ebp - 0x38]
mov byte [ebp - 4], 3
push esi
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
test eax, eax
je 0x4c0bc2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
test eax, eax
je 0x4c0bd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x24], 0
jl 0x4c0ca1
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp word [ebp - 0x40], 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 [ebp - 0x30], esi
jmp 0x4c0c07
call fcn.00462ff0
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x30]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c0c22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push dword [ebp - 0x34]
push ebx
call fcn.004655d0
mov edx, dword [ebp - 0x40]
add esp, 8
inc edx
mov ebx, eax
mov dword [ebp - 0x40], edx
cmp dx, word [ebp - 0x4c]
jb 0x4c09b0
mov eax, dword [ebp - 0x24]
jmp 0x4c0cd1
test dx, dx
je 0x4c0c28
push 2
push esi
call edi
mov esi, eax
mov dword [ebp - 0x30], esi
jmp 0x4c0c28
call fcn.00462ff0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c0cbc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x4c0cd1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c0cc8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x4c0cd1
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c0cbc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x4c0cd1
call fcn.00462ff0
jmp 0x4c0cd1
mov eax, 0x8007000e
jmp 0x4c0cd1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret 4