Function at 0x557990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70beb0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x7e6410]
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 [0x801a54]
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 0x557a07
push eax
push dword [0x801a54]
call edi
test eax, eax
je 0x557a07
push eax
call esi
mov dword [ebp - 0x48], eax
push 5
push ebx
push dword [0x801a54]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x557daf
push eax
push dword [0x801a54]
call edi
test eax, eax
je 0x557da1
push eax
call esi
test eax, eax
je 0x557da1
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 0x557a59
lea ecx, [eax + 8]
movzx ecx, word [ecx]
push eax
mov dword [ebp - 0x4c], ecx
call fcn.00542ac0
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 0x557daf
cmp dword [ebp - 0x34], 0
je 0x557a9e
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x557aa5
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x557d2f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x48]
push ecx
call fcn.00542a70
xor ecx, ecx
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
test edi, edi
je 0x557b21
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x557d61
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x557d40
push edi
push dword [ebp - 0x2c]
push edi
push eax
call fcn.006b6796
push eax
call fcn.004a0c40
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.0049cf70
mov edi, dword [ebp - 0x54]
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
test esi, esi
js 0x557ce4
mov dword [ebp - 0x24], 0
call fcn.004a2af0
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x557b68
movzx eax, word [ebx + 0xc]
lea esi, [ebx + 0x18]
mov dword [ebp - 0x2c], esi
jmp 0x557b72
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 0x557b82
movzx eax, word [ebx + 0xe]
jmp 0x557b86
movzx eax, word [ebx + 0xa]
mov esi, dword [ebp - 0x34]
movsx edx, ax
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x557b99
movzx eax, word [ebx + 0x10]
jmp 0x557b9d
movzx eax, word [ebx + 0xc]
cwde
add eax, ecx
mov dword [ebp - 0x18], eax
test esi, esi
je 0x557bad
movzx eax, word [ebx + 0x12]
jmp 0x557bb1
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 0x557bd6
mov edx, dword [ebx + 0x14]
mov esi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
jmp 0x557bde
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.00542460
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x557cdc
cmp dword [ebp - 0x34], 0
je 0x557c24
mov eax, dword [ebx]
test eax, eax
je 0x557c24
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 0x78ae04
lea ecx, [ebp - 0x24]
call fcn.00543480
test eax, eax
jns 0x557c67
push edi
push 0
push 0x764940
push 0
push 0
push dword [ebp - 0x38]
push esi
push dword [ebp - 0x2c]
call fcn.004a2710
mov dword [ebp - 0x24], eax
jmp 0x557ca2
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x50]
push edi
push 0
push 0x764940
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 0x557ca2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
test eax, eax
je 0x557cb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x24], 0
jl 0x557d81
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 0x557ce7
call fcn.004a1b60
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 0x557d02
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.00542b50
mov edx, dword [ebp - 0x40]
add esp, 8
inc edx
mov ebx, eax
mov dword [ebp - 0x40], edx
cmp dx, word [ebp - 0x4c]
jb 0x557a90
mov eax, dword [ebp - 0x24]
jmp 0x557db1
test dx, dx
je 0x557d08
push 2
push esi
call edi
mov esi, eax
mov dword [ebp - 0x30], esi
jmp 0x557d08
call fcn.004a1b60
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x557d9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x557db1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x557da8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x557db1
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x557d9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
jmp 0x557db1
call fcn.004a1b60
jmp 0x557db1
mov eax, 0x8007000e
jmp 0x557db1
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.006b3266
mov esp, ebp
pop ebp
ret 4