Function at 0x5fd450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x74e694]
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 [0x754e80]
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 0x5fd4bf
push eax
push dword [0x754e80]
call edi
test eax, eax
je 0x5fd4bf
push eax
call esi
mov dword [ebp - 0x54], eax
push 5
push ebx
push dword [0x754e80]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5fdaa4
push eax
push dword [0x754e80]
call edi
test eax, eax
je 0x5fda9b
push eax
call esi
mov ecx, eax
test ecx, ecx
je 0x5fda9b
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 0x5fd524
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 0x5fd546
add ecx, 4
jmp 0x5fd551
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5fd546
cmp word [ecx], si
jne 0x5fd560
add ecx, 4
jmp 0x5fd570
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5fd560
nop dword [eax + eax]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5fd570
test bl, 0x40
je 0x5fd59c
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 0x5fd591
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 0x5fdaa4
mov ebx, dword [ebp - 0x48]
nop dword [eax]
mov eax, 0xffff
cmp bx, ax
jne 0x5fd5e2
mov ebx, dword [esi + 0x14]
lea eax, [esi + 0x18]
jmp 0x5fd5e9
movzx ebx, word [esi + 0x10]
lea eax, [esi + 0x12]
cmp word [eax], 0x7b
jne 0x5fd9c6
mov ecx, dword [ebp - 0x54]
mov eax, ecx
test ecx, ecx
je 0x5fd618
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 0x5fd661
add eax, edx
jne 0x5fd600
xor esi, esi
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x5fd6bc
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x5fda63
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5fda46
push esi
test ebx, ebx
je 0x5fd672
push ebx
push eax
call fcn.00666bd0
add esp, 0xc
xor eax, eax
jmp 0x5fd692
mov eax, 0x378
cmp si, ax
je 0x5fd618
mov ebx, edi
lea esi, [edx + 6]
jmp 0x5fd61c
push 0
push eax
call fcn.00667150
add esp, 0xc
call fcn.0066fa7d
mov dword [eax], 0x16
call fcn.0066a5eb
mov eax, 0x16
push eax
call fcn.005fc7c0
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 0x5fda33
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.006015f0
mov esi, dword [ebp - 0x34]
mov ecx, eax
add esp, 8
mov dword [ebp - 0x2c], ecx
test ecx, ecx
js 0x5fd983
call fcn.006050b0
mov edi, dword [ebp - 0x24]
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x5fd73e
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 0x5fd780
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 [0x754e7c]
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 0x6a8008
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x5fd97b
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x5fd7e3
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x5fd7e3
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 [0x754324]
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 0x5fd828
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push 0x6a7ae4
push esi
call dword [eax]
mov ebx, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x5fd836
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
test ebx, ebx
jns 0x5fd903
call fcn.006050b0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0x6a5044
push 0
mov dword [ebp - 0x58], 0
call fcn.005fe4b0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
js 0x5fd8d3
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0
push 0x6a7ad4
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x5fd88d
xor esi, esi
jmp 0x5fd89e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x5fdac6
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x58]
push 0
push 0x6b4ff4
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 0x5fd8d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x5fd8e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x5fd8ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x5fd8fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x34]
jmp 0x5fd954
mov dword [ebp - 0x60], 0
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
push esi
push 0
push 0x6b4ff4
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 0x5fd943
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x5fd954
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
js 0x5fda7e
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 0x5fd986
call fcn.005fccb0
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 0x5fd9a1
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 0x5fd9ba
lea ecx, [esi + 0x12]
mov esi, eax
cmp word [ecx], si
jne 0x5fd9e0
add ecx, 4
jmp 0x5fd9eb
test dx, dx
je 0x5fd9a7
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x38], edi
jmp 0x5fd9a4
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5fd9e0
cmp word [ecx], si
jne 0x5fd9f5
add ecx, 4
jmp 0x5fda00
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5fd9f5
movzx eax, word [ecx]
test ax, ax
je 0x5fda12
cmp bx, si
je 0x5fda12
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 0x5fd5d0
mov ebx, dword [ebp - 0x2c]
jmp 0x5fdaa6
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5fdaa6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5fdaa6
call fcn.005fccb0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5fdaa6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5fdaa6
mov eax, dword [ebp - 0x28]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5fdaa6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5fdaa6
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5fdaa6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5fdaa6
call fcn.005fccb0
mov ebx, eax
jmp 0x5fdaa6
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.00663ada
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.005daa10
int3