Function at 0x5a06d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x665898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x716738]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
movzx esi, word [ebp + 8]
push edi
push 0xf0
push esi
mov edi, ecx
push eax
mov dword [ebp - 0x30], edi
call ebx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x5a0733
mov ecx, dword [0x716738]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5a0733
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
mov edx, dword [0x716738]
push 5
push esi
push edx
call ebx
test eax, eax
je 0x5a09f6
push eax
mov eax, dword [0x716738]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5a0a6e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x5a0a6e
movzx ecx, word [eax + 2]
xor ebx, ebx
mov edx, 0xffff
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
mov esi, ebx
mov dword [ebp - 0x14], esi
je 0x5a078c
lea ecx, [eax + 8]
movzx ecx, word [ecx]
push eax
mov dword [ebp - 0x2c], ecx
call fcn.00597850
mov edx, dword [edi + 4]
add esp, 4
push 5
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x18], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x20], edx
cmp ax, word [ebp - 0x2c]
jae 0x5a0a29
test esi, esi
je 0x5a07c9
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x5a07d0
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x5a09c5
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
mov dword [ebp - 0x10], 0
call fcn.005a03f0
add esp, 0xc
mov edi, eax
mov dword [ebp + 8], 0
mov dword [ebp - 4], 1
test edi, edi
je 0x5a0846
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5a0a0c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x10]
push edi
push ecx
push edi
push eax
call fcn.00403ac0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp + 8]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.00487450
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
js 0x5a099f
mov dword [ebp - 0x10], 0
call fcn.0048ef80
test esi, esi
je 0x5a0888
movzx eax, word [ebx + 0xc]
lea edx, [ebx + 0x18]
mov dword [ebp - 0x28], edx
jmp 0x5a0892
lea eax, [ebx + 0x12]
mov dword [ebp - 0x28], eax
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [ebp - 0x44], edx
test esi, esi
je 0x5a08a2
movzx eax, word [ebx + 0xe]
jmp 0x5a08a6
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [ebp - 0x40], ecx
test esi, esi
je 0x5a08b6
movzx eax, word [ebx + 0x10]
jmp 0x5a08ba
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x5a08ca
movzx eax, word [ebx + 0x12]
jmp 0x5a08ce
movzx eax, word [ebx + 0xe]
mov edi, dword [ebp - 0x30]
movsx edx, ax
add edx, ecx
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x44]
push eax
push ecx
mov dword [ebp - 0x38], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x5a08f6
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x5a08fe
movzx esi, word [ebx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
or eax, 0x10000
push eax
push 0
push ecx
mov eax, esp
mov dword [ecx], esi
lea edx, [ebp - 0x44]
mov dword [eax], edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], esp
push eax
lea ecx, [ebp - 0x10]
call fcn.004c4830
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x5a0994
cmp dword [ebp - 0x14], 0
je 0x5a0943
mov eax, dword [ebx]
test eax, eax
je 0x5a0943
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
push ecx
push 0
push 0x699a58
push 0
push 0
push edx
push eax
lea ecx, [ebp - 0x10]
call fcn.005a05c0
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
js 0x5a0a3c
cmp word [ebp - 0x20], 0
jne 0x5a097a
xor eax, eax
jmp 0x5a097d
mov eax, dword [ebp - 0x18]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x18], esi
jmp 0x5a099c
call fcn.00416a70
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x5a09d9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x5a09d9
test dx, dx
je 0x5a09d9
mov ecx, dword [ebp - 0x18]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x18], eax
push esi
push ebx
call fcn.005978f0
mov edx, dword [ebp - 0x20]
inc edx
add esp, 8
mov ebx, eax
mov dword [ebp - 0x20], edx
cmp dx, word [ebp - 0x2c]
jb 0x5a07bd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, 0x8007000e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x5a0a27
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004892a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00416a70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4