Function at 0x5f57c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68fc7d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x746694]
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 - 0x40], ecx
movzx ebx, word [ebp + 8]
push 0xf0
push ebx
push dword [0x74ce78]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x5f582f
push eax
push dword [0x74ce78]
call edi
test eax, eax
je 0x5f582f
push eax
call esi
mov dword [ebp - 0x54], eax
push 5
push ebx
push dword [0x74ce78]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5f5e14
push eax
push dword [0x74ce78]
call edi
test eax, eax
je 0x5f5e0b
push eax
call esi
mov ecx, eax
test ecx, ecx
je 0x5f5e0b
movzx edx, word [ecx + 2]
lea esi, [ecx + 0xc]
mov eax, edx
mov ebx, 0xffff
mov dword [ebp - 0x48], eax
mov edi, edx
xor eax, eax
cmp di, bx
sete al
lea eax, [eax*8 + 8]
movzx eax, word [eax + ecx]
mov dword [ebp - 0x64], eax
cmp dx, bx
je 0x5f5894
mov esi, ecx
xor eax, eax
cmp di, bx
mov ebx, dword [esi]
mov esi, 0xffff
sete al
lea eax, [eax*8 + 0x12]
add ecx, eax
cmp word [ecx], si
jne 0x5f58b6
add ecx, 4
jmp 0x5f58c1
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f58b6
cmp word [ecx], si
jne 0x5f58d0
add ecx, 4
jmp 0x5f58e0
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f58d0
nop dword [eax + eax]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f58e0
test bl, 0x40
je 0x5f590c
xor eax, eax
cmp dx, si
sete al
lea eax, [eax*4 + 2]
add ecx, eax
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f5901
mov eax, dword [ebp - 0x40]
lea esi, [ecx + 3]
push 5
and esi, 0xfffffffc
mov dword [ebp - 0x24], esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
cmp ax, word [ebp - 0x64]
jae 0x5f5e14
mov ebx, dword [ebp - 0x48]
nop dword [eax]
mov eax, 0xffff
cmp bx, ax
jne 0x5f5952
mov ebx, dword [esi + 0x14]
lea eax, [esi + 0x18]
jmp 0x5f5959
movzx ebx, word [esi + 0x10]
lea eax, [esi + 0x12]
cmp word [eax], 0x7b
jne 0x5f5d36
mov ecx, dword [ebp - 0x54]
mov eax, ecx
test ecx, ecx
je 0x5f5988
nop dword [eax]
movzx ecx, word [eax]
lea edi, [eax + 2]
movzx esi, word [eax + 2]
mov edx, dword [eax + 4]
add eax, 8
cmp ecx, ebx
je 0x5f59d1
add eax, edx
jne 0x5f5970
xor esi, esi
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x5f5a2c
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x5f5dd3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5f5db6
push esi
test ebx, ebx
je 0x5f59e2
push ebx
push eax
call fcn.00660260
add esp, 0xc
xor eax, eax
jmp 0x5f5a02
mov eax, 0x378
cmp si, ax
je 0x5f5988
mov ebx, edi
lea esi, [edx + 6]
jmp 0x5f598c
push 0
push eax
call fcn.006607e0
add esp, 0xc
call fcn.0066910d
mov dword [eax], 0x16
call fcn.00663c7b
mov eax, 0x16
push eax
call fcn.005f4b30
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
mov eax, dword [ebp - 0x28]
test ebx, ebx
js 0x5f5da3
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.005f9960
mov esi, dword [ebp - 0x34]
mov ecx, eax
add esp, 8
mov dword [ebp - 0x2c], ecx
test ecx, ecx
js 0x5f5cf3
call fcn.005fd420
mov edi, dword [ebp - 0x24]
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x5f5aae
movzx eax, word [edi + 0xc]
movsx ecx, ax
movzx eax, word [edi + 0xe]
movsx edx, ax
movsx eax, word [edi + 0x10]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movsx eax, word [edi + 0x12]
add eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [edi + 0x14]
mov ebx, dword [edi + 4]
add edi, 8
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
jmp 0x5f5af0
movzx eax, word [edi + 8]
movsx ecx, ax
movzx eax, word [edi + 0xa]
movsx edx, ax
movsx eax, word [edi + 0xc]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movsx eax, word [edi + 0xe]
add eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [ebp - 0x24]
xor ebx, ebx
movzx eax, word [edi + 0x10]
add ecx, 0x12
mov edx, dword [ebp - 0x1c]
push 0
push dword [0x74ce74]
mov edi, dword [edi]
push eax
mov eax, dword [ebp - 0x40]
or edi, 0x10000
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x20]
push dword [eax + 4]
mov eax, dword [ebp - 0x14]
sub eax, edx
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push edi
push 0
push 0x6a0070
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x5f5ceb
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x5f5b53
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x5f5b53
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], 0
push 0
push 0
push dword [0x74c320]
mov byte [ebp - 4], 3
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov ebx, 0x80004005
xor eax, eax
mov dword [ebp - 0x68], esi
test esi, esi
cmovne ebx, eax
je 0x5f5b98
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push 0x69fb4c
push esi
call dword [eax]
mov ebx, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x5f5ba6
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
test ebx, ebx
jns 0x5f5c73
call fcn.005fd420
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0x69d3c4
push 0
mov dword [ebp - 0x58], 0
call fcn.005f6820
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
js 0x5f5c43
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0
push 0x69fb3c
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x5f5bfd
xor esi, esi
jmp 0x5f5c0e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x5f5e36
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x58]
push 0
push 0x6adae4
push edx
push dword [ebp - 0x5c]
mov eax, dword [ecx]
push edi
push esi
push ecx
call dword [eax + 0x28]
mov ebx, eax
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x5f5c43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5f5c50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x5f5c5d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x5f5c6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x34]
jmp 0x5f5cc4
mov dword [ebp - 0x60], 0
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
push esi
push 0
push 0x6adae4
mov ecx, dword [eax]
push edx
push dword [ebp - 0x5c]
mov byte [ebp - 4], 4
push edi
push dword [ebp - 0x30]
push eax
call dword [ecx + 0x28]
mov ebx, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], ebx
test eax, eax
je 0x5f5cb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x5f5cc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
js 0x5f5dee
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp word [ebp - 0x3c], cx
push 0x13
push ecx
push ecx
push ecx
push ecx
cmove eax, ecx
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x38], edi
jmp 0x5f5cf6
call fcn.005f5020
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x38]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f5d11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x48]
lea ecx, [esi + 0x18]
mov eax, 0xffff
cmp bx, ax
je 0x5f5d2a
lea ecx, [esi + 0x12]
mov esi, eax
cmp word [ecx], si
jne 0x5f5d50
add ecx, 4
jmp 0x5f5d5b
test dx, dx
je 0x5f5d17
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x38], edi
jmp 0x5f5d14
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f5d50
cmp word [ecx], si
jne 0x5f5d65
add ecx, 4
jmp 0x5f5d70
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f5d65
movzx eax, word [ecx]
test ax, ax
je 0x5f5d82
cmp bx, si
je 0x5f5d82
add eax, 0xfffe
movzx eax, ax
lea esi, [ecx + 5]
add esi, eax
inc edx
and esi, 0xfffffffc
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], esi
cmp dx, word [ebp - 0x64]
jb 0x5f5940
mov ebx, dword [ebp - 0x2c]
jmp 0x5f5e16
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f5e16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f5e16
call fcn.005f5020
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5f5e16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f5e16
mov eax, dword [ebp - 0x28]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f5e16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f5e16
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f5e16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f5e16
call fcn.005f5020
mov ebx, eax
jmp 0x5f5e16
xor ebx, ebx
mov eax, ebx
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.0065d16a
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.005d54d0
int3