Function at 0x4070f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x2168
call fcn.004ebbf0
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x2164], eax
mov eax, dword [esp + 0x216c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2170]
push ebx
mov dword [esp + 8], eax
mov al, byte [esp + 0x217c]
push ebp
mov byte [esp + 0xb], al
xor eax, eax
push esi
push edi
mov word [esp + 0x174], ax
xor ebx, ebx
lea esp, [esp]
push 0x80
lea eax, [esp + 0x78]
xor ebp, ebp
push eax
push ebp
push ebx
mov ecx, 0x55a850
call fcn.00404e20
test al, al
je 0x407253
lea ecx, [esp + 0x174]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407170
sub ecx, edx
lea edx, [esp + 0x74]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407186
sub edx, esi
sar edx, 1
lea eax, [edx + ecx]
cmp eax, 0x3f6
ja 0x407249
test ebx, ebx
je 0x4071c4
lea edi, [esp + 0x174]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4071b1
mov eax, dword [0x50bb80]
mov dword [edi], eax
lea eax, [esp + 0x174]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x4071d0
mov ecx, dword [0x50bb84]
lea edx, [esp + 0x74]
mov dword [eax], ecx
mov esi, edx
mov cx, word [0x50bb88]
mov word [eax + 4], cx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4071f5
lea edi, [esp + 0x174]
sub edx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407210
mov ecx, edx
lea eax, [esp + 0x74]
shr ecx, 2
inc ebp
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
push ebx
mov ecx, 0x55a850
call fcn.00404e20
test al, al
jne 0x407160
test ebp, ebp
je 0x407253
inc ebx
jmp 0x407140
push 0x426
call fcn.00488530
push eax
lea eax, [esp + 0x178]
push eax
push 0x425
call fcn.00488530
push eax
lea eax, [esp + 0x180]
push eax
push 0x424
call fcn.00488530
push eax
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
lea eax, [esp + 0x98c]
push 0x400
push eax
call fcn.004028e0
mov edi, dword [esp + 0x34]
add esp, 0x20
cmp byte [esp + 0x2184], 0
je 0x4072fb
push edi
call fcn.00478260
mov esi, eax
test esi, esi
je 0x4072fb
add esi, 2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x14
jae 0x4072fb
push 0x426
call fcn.00488530
push eax
push esi
push esi
push str._s_t._s_t_s_t._t
lea eax, [esp + 0x984]
push 0x400
push eax
call fcn.004028e0
add esp, 0x18
xor edx, edx
cmp word [esp + 0x974], dx
je 0x40733a
xor ecx, ecx
lea eax, [esp + 0x974]
cmp word [eax], 9
jne 0x407327
cmp ecx, 0x800
jae 0x407451
xor ecx, ecx
mov word [eax], cx
inc edx
lea eax, [esp + 0x974]
lea ecx, [edx + edx]
add eax, ecx
cmp word [eax], 0
jne 0x407310
push 0x58
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004ee100
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [0x56df20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x974]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x13]
neg eax
mov dword [esp + 0x1c], 0x58
mov dword [esp + 0x38], edi
sbb eax, eax
mov dword [esp + 0x3c], 0x800
and eax, 0x34d
add eax, 0x140
push eax
call fcn.00488530
push edi
mov dword [esp + 0x50], eax
call fcn.00478eb0
cmp eax, edi
jne 0x4073c4
push 0x800
lea eax, [esp + 0x1178]
mov ecx, 0x55d4d8
push eax
call fcn.0043f660
lea eax, [esp + 0x1174]
mov dword [esp + 0x48], eax
cmp byte [esp + 0x218c], 0
mov edi, dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov dword [esp + 0x50], 0x1000c
mov dword [esp + 0x58], 0x50ba28
jne 0x407405
call fcn.0046bee0
cmp eax, 0x600
jb 0x407405
or dword [esp + 0x50], 0x80000
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
jmp 0x40740c
lea eax, [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x407433
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x407431
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
mov ecx, dword [esp + 0x2174]
setne al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x2168
ret 0x14
call fcn.004ebafc
int3