Function at 0x4086e0
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov ecx, dword [ebp + 0xc]
lea eax, [0x431a98]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov dword [esp + 0x94], eax
cmp dword [esp + 0x94], 0
jne 0x408747
mov dword [esp + 0x9c], 0
jmp 0x408f6d
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x94]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004035d0
mov dword [esp + 0x90], eax
cmp dword [esp + 0x90], 0
jne 0x40879f
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov dword [esp + 0x9c], 0
jmp 0x408f6d
lea eax, [esp + 0x78]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00403bb0
cmp eax, 0
jge 0x4087ff
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, dword [esp + 0x90]
mov dword [esp + 0x9c], eax
jmp 0x408f6d
jmp 0x408804
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov edi, dword [esp + 0x94]
lea esi, [esp + 0x78]
lea edx, [esp + 0x74]
lea ecx, [esp + 0x70]
lea eax, [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00403e40
cmp eax, 0
je 0x408861
jmp 0x408d27
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x70]
and eax, 3
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x70]
and eax, 0xfffffffc
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + ecx*4 + 8]
mov dword [esp + 0x54], eax
cmp dword [esp + 0x54], 0
jne 0x408928
mov eax, esp
mov dword [eax], 0x27118
call fcn.0040aa50
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 8], 0x27118
mov dword [eax + 4], 0
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov dword [eax], 0
movsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 0x54]
movsd qword [eax + 0x27108], xmm0
movsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 0x54]
movsd qword [eax + 0x27110], xmm0
mov edx, dword [esp + 0x54]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x74]
mov dword [eax + ecx*4 + 8], edx
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00403d20
mov dword [esp + 0x50], eax
cmp dword [esp + 0x50], 0
jne 0x40896e
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x1c]
add eax, 0x68
mov dword [esp + 0x50], eax
cmp dword [esp + 0x64], 0
jne 0x408ac2
mov eax, dword [esp + 0x54]
cmp dword [eax], 0x2710
jl 0x4089be
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, eax
lea eax, str.Stack_overflow__exceeded__d_frames__n
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x2710
call fcn.0040a8e0
mov dword [esp], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [esp + 0x54]
cmp dword [eax], 1
jl 0x4089ee
mov eax, dword [esp + 0x54]
add eax, 8
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx]
sub ecx, 1
shl ecx, 4
add eax, ecx
mov eax, dword [eax]
mov dword [esp + 0x98], eax
jmp 0x4089ff
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov esi, dword [esp + 0x98]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004050b0
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x27108]
mov eax, dword [eax + 0x2710c]
sub edi, ecx
sbb esi, eax
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
add edx, edi
adc ecx, esi
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x98]
cmp dword [eax + 0x5c], 1
jg 0x408a92
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x27108]
mov eax, dword [eax + 0x2710c]
sub edi, ecx
sbb esi, eax
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 0x30]
mov ecx, dword [eax + 0x34]
add edx, edi
adc ecx, esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
shl ecx, 4
mov dword [eax + ecx + 8], edx
movsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, ecx
inc edx
mov dword [eax], edx
shl ecx, 4
movsd qword [eax + ecx + 0x10], xmm0
jmp 0x408d10
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x54]
cmp dword [eax], 0
jle 0x408bd6
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
shl ecx, 4
movsd xmm0, qword [eax + ecx + 0x10]
movsd qword [esp + 0x48], xmm0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
add ecx, 8
mov edx, dword [esp + 0x54]
mov edx, dword [edx]
shl edx, 4
add ecx, edx
cmp eax, dword [ecx]
je 0x408bd1
mov eax, dword [esp + 0x50]
cmp dword [eax + 0xc], 0
je 0x408b80
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x10]
lea esi, str.Exit_from_method__s._s__s_does_not_match_stack:_n
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0040a8e0
jmp 0x408bac
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 8]
lea ecx, str.Exit_from_method__s_does_not_match_stack:_n
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040a8e0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
add eax, 1
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00405120
mov dword [esp], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
jmp 0x408bd6
mov eax, dword [esp + 0x54]
cmp dword [eax], 1
jl 0x408c06
mov eax, dword [esp + 0x54]
add eax, 8
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx]
sub ecx, 1
shl ecx, 4
add eax, ecx
mov eax, dword [eax]
mov dword [esp + 0x98], eax
jmp 0x408c17
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov esi, dword [esp + 0x98]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004050b0
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov esi, dword [esp + 0x50]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004050b0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub ecx, esi
sbb eax, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, esp
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00404570
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x27108]
mov eax, dword [eax + 0x2710c]
sub edi, ecx
sbb esi, eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
add edx, edi
adc ecx, esi
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x5c], 0
jne 0x408d0b
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x27108]
mov eax, dword [eax + 0x2710c]
sub edi, ecx
sbb esi, eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x30]
mov ecx, dword [eax + 0x34]
add edx, edi
adc ecx, esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
jmp 0x408d10
movsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 0x54]
movsd qword [eax + 0x27108], xmm0
jmp 0x408804
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x34], 0
cmp dword [esp + 0x34], 0x8000
jge 0x408f16
mov dword [esp + 0x30], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + ecx*4 + 8]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
jne 0x408d8c
jmp 0x408f06
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x27108]
mov edx, dword [ecx + 0x2710c]
mov eax, dword [ecx + 0x27114]
mov ecx, dword [ecx + 0x27110]
sub esi, ecx
sbb edx, eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ecx, esi
adc eax, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, dword [ecx]
jge 0x408f01
cmp dword [esp + 0x2c], 0
jne 0x408e01
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x98], eax
jmp 0x408e1d
mov eax, dword [esp + 0x30]
add eax, 8
mov ecx, dword [esp + 0x2c]
sub ecx, 1
shl ecx, 4
add eax, ecx
mov eax, dword [eax]
mov dword [esp + 0x98], eax
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
shl ecx, 4
mov eax, dword [eax + ecx + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x98]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004050b0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004050b0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
shl ecx, 4
movsd xmm0, qword [eax + ecx + 0x10]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x27108]
mov eax, dword [eax + 0x2710c]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub ecx, esi
sbb eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, esp
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00404570
mov eax, dword [esp + 0x2c]
add eax, 1
mov dword [esp + 0x2c], eax
jmp 0x408dd0
jmp 0x408f06
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x34], eax
jmp 0x408d57
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x98], eax
movsd xmm0, qword [esp + 0x38]
mov eax, dword [esp + 0x98]
movsd qword [eax + 0x28], xmm0
cmp dword [ebp + 0x10], 0
je 0x408f50
movsd xmm0, qword [esp + 0x38]
mov eax, dword [ebp + 0x10]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, dword [esp + 0x90]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x9c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret