Function at 0x5f5290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68f6fd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x745694]
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 [0x74be78]
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 0x5f52ff
push eax
push dword [0x74be78]
call edi
test eax, eax
je 0x5f52ff
push eax
call esi
mov dword [ebp - 0x54], eax
push 5
push ebx
push dword [0x74be78]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5f58e4
push eax
push dword [0x74be78]
call edi
test eax, eax
je 0x5f58db
push eax
call esi
mov ecx, eax
test ecx, ecx
je 0x5f58db
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 0x5f5364
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 0x5f5386
add ecx, 4
jmp 0x5f5391
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f5386
cmp word [ecx], si
jne 0x5f53a0
add ecx, 4
jmp 0x5f53b0
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f53a0
nop dword [eax + eax]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f53b0
test bl, 0x40
je 0x5f53dc
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 0x5f53d1
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 0x5f58e4
mov ebx, dword [ebp - 0x48]
nop dword [eax]
mov eax, 0xffff
cmp bx, ax
jne 0x5f5422
mov ebx, dword [esi + 0x14]
lea eax, [esi + 0x18]
jmp 0x5f5429
movzx ebx, word [esi + 0x10]
lea eax, [esi + 0x12]
cmp word [eax], 0x7b
jne 0x5f5806
mov ecx, dword [ebp - 0x54]
mov eax, ecx
test ecx, ecx
je 0x5f5458
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 0x5f54a1
add eax, edx
jne 0x5f5440
xor esi, esi
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x5f54fc
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x5f58a3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5f5886
push esi
test ebx, ebx
je 0x5f54b2
push ebx
push eax
call fcn.0065fd30
add esp, 0xc
xor eax, eax
jmp 0x5f54d2
mov eax, 0x378
cmp si, ax
je 0x5f5458
mov ebx, edi
lea esi, [edx + 6]
jmp 0x5f545c
push 0
push eax
call fcn.006602b0
add esp, 0xc
call fcn.00668bdd
mov dword [eax], 0x16
call fcn.0066374b
mov eax, 0x16
push eax
call fcn.005f4600
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 0x5f5873
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.005f9430
mov esi, dword [ebp - 0x34]
mov ecx, eax
add esp, 8
mov dword [ebp - 0x2c], ecx
test ecx, ecx
js 0x5f57c3
call fcn.005fcf00
mov edi, dword [ebp - 0x24]
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x5f557e
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 0x5f55c0
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 [0x74be74]
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 0x69efe8
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x5f57bb
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x5f5623
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x5f5623
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 [0x74b320]
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 0x5f5668
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push 0x69eac4
push esi
call dword [eax]
mov ebx, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x5f5676
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
test ebx, ebx
jns 0x5f5743
call fcn.005fcf00
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0x69c364
push 0
mov dword [ebp - 0x58], 0
call fcn.005f62f0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
js 0x5f5713
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0
push 0x69eab4
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x5f56cd
xor esi, esi
jmp 0x5f56de
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x5f5906
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x58]
push 0
push 0x6aca64
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 0x5f5713
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5f5720
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x5f572d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x5f573e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x34]
jmp 0x5f5794
mov dword [ebp - 0x60], 0
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
push esi
push 0
push 0x6aca64
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 0x5f5783
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x5f5794
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
js 0x5f58be
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 0x5f57c6
call fcn.005f4af0
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 0x5f57e1
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 0x5f57fa
lea ecx, [esi + 0x12]
mov esi, eax
cmp word [ecx], si
jne 0x5f5820
add ecx, 4
jmp 0x5f582b
test dx, dx
je 0x5f57e7
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x38], edi
jmp 0x5f57e4
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f5820
cmp word [ecx], si
jne 0x5f5835
add ecx, 4
jmp 0x5f5840
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f5835
movzx eax, word [ecx]
test ax, ax
je 0x5f5852
cmp bx, si
je 0x5f5852
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 0x5f5410
mov ebx, dword [ebp - 0x2c]
jmp 0x5f58e6
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f58e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f58e6
call fcn.005f4af0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5f58e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f58e6
mov eax, dword [ebp - 0x28]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f58e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f58e6
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5f58e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5f58e6
call fcn.005f4af0
mov ebx, eax
jmp 0x5f58e6
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.0065cc3a
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.005d5140
int3