Function at 0x404950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x40
mov eax, 0x40d8c7
call fcn.0040c9ff
mov dword [ebp - 0x40], ecx
movzx esi, word [ebp + 8]
push 0xf0
push esi
push dword [0x415350]
call dword [sym.imp.kernel32.dll_FindResourceW]
and dword [ebp - 0x3c], 0
xor edi, edi
test eax, eax
je 0x40499a
push eax
push dword [0x415350]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x40499a
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x3c], eax
push 5
push esi
push dword [0x415350]
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x404c8c
push eax
push dword [0x415350]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x404c85
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x404c85
movzx ecx, word [edx + 2]
xor eax, eax
mov ebx, 0xffff
mov esi, ecx
cmp cx, bx
mov dword [ebp - 0x24], ebx
push 0x10
sete al
mov dword [ebp - 0x34], esi
cmp cx, word [ebp - 0x24]
mov dword [ebp - 0x4c], eax
pop eax
push 8
pop ebx
cmovne eax, ebx
push edx
movzx eax, word [eax + edx]
mov dword [ebp - 0x44], eax
call main
mov ebx, eax
mov eax, dword [ebp - 0x40]
pop ecx
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x38], ecx
cmp ax, word [ebp - 0x44]
jae 0x404c8c
cmp si, word [ebp - 0x24]
push 0x12
pop edx
push 0x18
pop eax
cmove edx, eax
mov dword [ebp - 0x48], edx
mov eax, 0xffff
cmp si, ax
jne 0x404a51
mov eax, dword [ebx + 0x14]
jmp 0x404a55
movzx eax, word [ebx + 0x10]
cmp word [edx + ebx], 0x7b
jne 0x404c29
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x3c]
push eax
call main
xor ecx, ecx
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x28], ecx
and dword [ebp - 4], ecx
test edi, edi
je 0x404ad6
push edi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x404c67
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x404c5e
push edi
push dword [ebp - 0x24]
push edi
push eax
call main
add esp, 0x10
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 edi, eax
test edi, edi
js 0x404c6c
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push ecx
call fcn.004089f8
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x404c0b
and dword [ebp - 0x24], 0
call main
mov edi, 0xffff
cmp si, di
jne 0x404b0d
movzx eax, word [ebx + 0xc]
jmp 0x404b11
movzx eax, word [ebx + 8]
movsx ecx, ax
mov dword [ebp - 0x20], ecx
jne 0x404b1f
movzx eax, word [ebx + 0xe]
jmp 0x404b23
movzx eax, word [ebx + 0xa]
movsx edx, ax
mov dword [ebp - 0x1c], edx
jne 0x404b31
movzx eax, word [ebx + 0x10]
jmp 0x404b35
movzx eax, word [ebx + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x18], eax
cmp si, di
jne 0x404b46
movzx eax, word [ebx + 0x12]
jmp 0x404b4a
movzx eax, word [ebx + 0xe]
mov edi, dword [ebp - 0x40]
cwde
add eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, 0xffff
cmp si, ax
jne 0x404b75
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 8]
mov edx, dword [ebx + 4]
jmp 0x404b7d
movzx ecx, word [ebx + 0x10]
xor edx, edx
mov eax, ebx
mov eax, dword [eax]
push 0
push ecx
push edx
or eax, 0x10000
lea ecx, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
push 0x40f2e8
call main
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x404c04
mov eax, 0xffff
cmp word [ebp - 0x34], ax
jne 0x404bbf
cmp dword [ebx], 0
je 0x404bbf
push dword [ebx]
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x30]
xor eax, eax
lea ecx, [ebp - 0x24]
push eax
push 0x40f4d8
push eax
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x48]
add eax, ebx
push eax
call fcn.00404d63
mov edi, eax
test edi, edi
js 0x404c76
push 0x13
xor eax, eax
cmp word [ebp - 0x38], ax
push eax
push eax
push eax
push eax
cmovne eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x2c], esi
jmp 0x404c0b
call fcn.004041f3
mov edi, eax
push dword [ebp - 0x30]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040299a
mov esi, dword [ebp - 0x34]
jmp 0x404c3c
test cx, cx
je 0x404c3c
push 2
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x4c]
push ebx
call main
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
mov ebx, eax
inc ecx
mov dword [ebp - 0x38], ecx
cmp cx, word [ebp - 0x44]
jae 0x404c8c
mov edx, dword [ebp - 0x48]
jmp 0x404a42
call fcn.004041f3
mov edi, eax
jmp 0x404c6c
mov edi, 0x8007000e
lea ecx, [ebp - 0x28]
call fcn.0040299a
jmp 0x404c8c
push dword [ebp - 0x30]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x404c6c
call fcn.004041f3
mov edi, eax
mov eax, edi
call fcn.0040c9ba
ret 4