Function at 0x408920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40eff0
push 0x40e4df
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x410014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x278], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x50
push 0
lea eax, [ebp - 0x274]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x2cc
push 0
lea eax, [ebp - 0x568]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 4], 0
push 0x401238
push 2
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
add esp, 8
call fcn.0040dab0
mov esi, 1
mov dword [ebp - 0x27c], esi
cmp esi, edi
jge 0x408b35
lea ecx, [esi*4]
lea eax, [ecx + ebx]
mov edx, dword [eax]
movzx eax, word [edx]
cmp eax, 0x2d
je 0x4089db
cmp eax, 0x2f
jne 0x408a25
add ebx, ecx
push 0x401240
lea eax, [edx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408a28
mov dword [0x410060], eax
mov eax, edi
sub eax, esi
lea eax, [eax*4 - 4]
push eax
lea eax, [ebx + 4]
push eax
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
dec edi
mov dword [ebp - 0x280], edi
dec esi
mov dword [ebp - 0x27c], esi
mov ebx, dword [ebp - 0x278]
inc esi
jmp 0x4089b4
push 0x401264
mov eax, dword [ebx]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408a4c
mov dword [0x410060], 1
jmp 0x4089f8
push 0x40128c
mov eax, dword [ebx]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408a70
mov dword [0x410060], 2
jmp 0x4089f8
push 0x4012b0
mov eax, dword [ebx]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408a97
mov dword [0x410060], 3
jmp 0x4089f8
push 0x4012d4
mov eax, dword [ebx]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408af2
mov byte [0x41070d], 1
mov eax, edi
sub eax, esi
lea eax, [eax*4 - 4]
push eax
lea eax, [ebx + 4]
lea ecx, [esi*4]
mov ebx, dword [ebp - 0x278]
add ecx, ebx
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
dec edi
mov dword [ebp - 0x280], edi
dec esi
mov dword [ebp - 0x27c], esi
inc esi
jmp 0x4089b4
push 0x4012f8
mov eax, dword [ebx]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x408a1f
mov byte [0x41070c], 1
mov eax, edi
sub eax, esi
lea eax, [eax*4 - 4]
push eax
lea ecx, [esi*4]
mov ebx, dword [ebp - 0x278]
add ecx, ebx
lea eax, [ecx + 4]
jmp 0x408ad4
cmp byte [0x41070d], 0
je 0x408b46
xor eax, eax
mov word [0], ax
push 0x408550
push 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
add esp, 8
cmp edi, 1
jne 0x408b60
call fcn.004090c0
push 0x104
push 0x410500
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetcwd]
add esp, 8
mov ecx, 0x410500
call fcn.0040ae90
mov edx, ebx
mov ecx, edi
call fcn.00409270
mov esi, eax
test esi, esi
jne 0x408b91
call fcn.004090c0
call fcn.00409070
cmp dword [0x418ff8], 0
je 0x408ba7
mov ebx, dword [0x419004]
jmp 0x408bb0
mov ebx, dword [0x410064]
dec ebx
mov edi, edi
mov ecx, esi
call fcn.0040ae90
mov edx, 0x409730
mov ecx, esi
call fcn.0040aed0
test eax, eax
jne 0x408bdb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
mov edx, esi
mov ecx, 0x5e2
call fcn.00408150
call fcn.00409140
mov esi, eax
test esi, esi
jne 0x408bb0
cmp byte [0x410020], al
je 0x408bf5
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp byte [0x410021], 0
je 0x408c3a
mov byte [0x41070f], 1
push dword [0x4104fc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
add esp, 4
cmp eax, 0xffffffff
jne 0x408c3a
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
cmp dword [eax], 2
je 0x408c40
call edi
push dword [eax]
mov edx, dword [0x4104fc]
mov ecx, 0x5e2
call fcn.00408150
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call fcn.00407220
call fcn.0040c1d0
call fcn.00405320
call fcn.0040c530
call fcn.004055c0
mov ecx, ebx
call fcn.00409110
call fcn.00409140
mov esi, eax
mov ecx, esi
call fcn.0040ae90
mov edx, 0x408e90
mov ecx, esi
call fcn.0040aed0
test eax, eax
jne 0x408c8e
call edi
push dword [eax]
mov edx, esi
mov ecx, 0x5e2
call fcn.00408150
call fcn.00409140
mov esi, eax
test esi, esi
jne 0x408c67
cmp byte [0x410748], al
je 0x408cae
push 0x401328
call fcn.0040db90
add esp, 4
call fcn.0040cd30
call fcn.0040bf80
call fcn.00403f80
call fcn.00405950
call fcn.0040c880
call fcn.00407320
mov byte [0x41070f], 0
cmp byte [0x4104f4], 0
jne 0x408d22
mov ecx, ebx
call fcn.00409110
call fcn.00409140
mov esi, eax
lea ebx, [ebx]
mov ecx, esi
call fcn.0040ae90
mov edx, 0x408fb0
mov ecx, esi
call fcn.0040aed0
test eax, eax
jne 0x408d17
call edi
push dword [eax]
mov edx, esi
mov ecx, 0x5e2
call fcn.00408150
call fcn.00409140
mov esi, eax
test esi, esi
jne 0x408cf0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ebp - 0x568]
push eax
lea edx, [ebp - 0x274]
mov ecx, dword [ebp - 0x14]
call fcn.00408850
add esp, 4
ret