Function at 0x537200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0355
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x6401e8]
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 edi, ecx
mov dword [ebp - 0x44], edi
movzx esi, word [ebp + 8]
push 0xf0
push esi
push dword [0x649398]
call dword [sym.imp.kernel32.dll_FindResourceW]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x50], ecx
test eax, eax
je 0x53726c
push eax
push dword [0x649398]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x53726c
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x50], eax
push 5
push esi
push dword [0x649398]
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x5376c6
push eax
push dword [0x649398]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x5376bf
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x5376bf
movzx ecx, word [edx + 2]
mov esi, 0xffff
mov eax, ecx
mov dword [ebp - 0x48], eax
movzx eax, ax
mov dword [ebp - 0x58], eax
xor eax, eax
cmp cx, si
push edx
sete al
mov dword [ebp - 0x60], eax
xor eax, eax
cmp cx, si
sete al
lea eax, [eax*8 + 8]
movzx eax, word [eax + edx]
mov dword [ebp - 0x54], eax
call main
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x4c], edx
cmp ax, word [ebp - 0x54]
jae 0x5376c6
nop dword [eax]
mov ecx, 0xffff
cmp word [ebp - 0x48], cx
jne 0x537320
mov esi, dword [esi + 0x14]
jmp 0x537324
movzx esi, word [esi + 0x10]
cmp word [ebp - 0x58], cx
mov eax, 0x18
mov ecx, 0x12
cmovne eax, ecx
mov ecx, dword [ebp - 0x3c]
cmp word [eax + ecx], 0x7b
jne 0x53766f
mov ecx, dword [ebp - 0x50]
mov eax, ecx
test ecx, ecx
je 0x537368
nop dword [eax]
movzx ecx, word [eax]
lea ebx, [eax + 2]
movzx edi, word [eax + 2]
mov edx, dword [eax + 4]
add eax, 8
cmp ecx, esi
je 0x5373b1
add eax, edx
jne 0x537350
xor esi, esi
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x53740a
push esi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x53768d
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x537684
push esi
test ebx, ebx
je 0x5373c0
push ebx
push eax
call fcn.0057bac0
add esp, 0xc
xor eax, eax
jmp 0x5373e0
mov eax, 0x378
cmp di, ax
je 0x537368
lea esi, [edx + 6]
jmp 0x53736c
push 0
push eax
call fcn.0057c040
add esp, 0xc
call fcn.00413066
mov dword [eax], 0x16
call fcn.0057ecd0
mov eax, 0x16
push eax
call main
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
mov eax, dword [ebp - 0x14]
test ebx, ebx
js 0x537695
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
push eax
call main
mov edi, dword [ebp - 0x34]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x53761d
call main
mov ecx, dword [ebp - 0x48]
mov edx, 0xffff
mov ebx, dword [ebp - 0x3c]
cmp cx, dx
mov eax, 0x18
mov esi, 0x12
cmovne eax, esi
add eax, ebx
mov dword [ebp - 0x38], eax
cmp cx, dx
jne 0x53749d
movzx eax, word [ebx + 0xc]
movsx ecx, ax
movzx eax, word [ebx + 0xe]
movsx edx, ax
movsx eax, word [ebx + 0x10]
add eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
movsx eax, word [ebx + 0x12]
add eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [ebx + 4]
lea esi, [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x40], ecx
jmp 0x5374e0
movzx eax, word [ebx + 8]
movsx ecx, ax
movzx eax, word [ebx + 0xa]
movsx edx, ax
movsx eax, word [ebx + 0xc]
add eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
movsx eax, word [ebx + 0xe]
add eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
movzx eax, word [ebx + 0x10]
mov esi, ebx
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push 0
push dword [0x649394]
mov esi, dword [esi]
push eax
mov eax, dword [ebp - 0x44]
or esi, 0x10000
push dword [eax + 4]
mov eax, dword [ebp - 0x1c]
sub eax, edx
push eax
mov eax, dword [ebp - 0x20]
sub eax, ecx
push eax
push edx
push ecx
push esi
push 0
push 0x603a04
push dword [ebp - 0x40]
call main
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x537616
mov eax, 0xffff
cmp word [ebp - 0x48], ax
jne 0x537541
mov eax, dword [ebx]
test eax, eax
je 0x537541
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push 0x60323c
lea ecx, [ebp - 0x40]
call main
test eax, eax
jns 0x537582
push edi
push 0
push 0x5d4e70
push 0
push 0
push ebx
push esi
push dword [ebp - 0x38]
call main
mov dword [ebp - 0x38], eax
jmp 0x5375d1
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push edi
push 0
push 0x5d4e70
mov ebx, dword [eax]
push ecx
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
mov ebx, dword [ebx + 0x28]
mov ecx, ebx
push esi
push dword [ebp - 0x38]
push eax
call dword [0x5c689c]
call ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x5375d1
mov ecx, dword [eax]
push eax
mov ebx, dword [ecx + 8]
mov ecx, ebx
call dword [0x5c689c]
call ebx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x5375ec
mov ecx, dword [eax]
push eax
mov ebx, dword [ecx + 8]
mov ecx, ebx
call dword [0x5c689c]
call ebx
mov ebx, dword [ebp - 0x38]
test ebx, ebx
js 0x5376b2
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp word [ebp - 0x4c], 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 0x53761d
call fcn.0048a130
mov ebx, eax
push edi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x537646
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5c689c]
call esi
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x60]
push dword [ebp - 0x3c]
call main
mov edx, dword [ebp - 0x4c]
add esp, 8
inc edx
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], edx
cmp dx, word [ebp - 0x54]
jb 0x537310
jmp 0x5376c6
test dx, dx
je 0x537649
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x30], edi
jmp 0x537649
call fcn.0048a130
mov ebx, eax
jmp 0x537692
mov ebx, 0x8007000e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x5376c6
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5c689c]
call esi
jmp 0x5376c6
push edi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x537692
call fcn.0048a130
mov ebx, eax
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.004017bd
mov esp, ebp
pop ebp
ret 4