Function at 0x40bdf3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov byte [esp + 0xb], bl
push esi
push edi
mov edi, ebx
test eax, eax
je 0x40c0f6
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsspn]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
jmp 0x40be57
mov ecx, dword [esp + 0x24]
mov ebx, dword [edx + edi*4]
movzx eax, word [ebx]
cmp eax, 0x40
jne 0x40be6f
lea ecx, [ebx + 2]
call fcn.0040525e
jmp 0x40c0d1
push 0x2d
pop edx
cmp ax, dx
je 0x40bf60
cmp eax, 0x2f
je 0x40bf60
push 0x3d
push ebx
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40bf0d
cmp esi, ebx
jne 0x40bea4
xor eax, eax
push 0x427
push eax
call fcn.004053f6
pop ecx
pop ecx
xor eax, eax
mov word [esi], ax
lea eax, [esi - 2]
push 0x20
add esi, 2
pop edx
movzx ecx, word [eax]
cmp cx, dx
je 0x40bebf
cmp ecx, 9
jne 0x40bec4
sub eax, 2
jmp 0x40beb2
push 2
xor ecx, ecx
mov byte [0x41148d], 1
push 0x401044
push esi
mov word [eax + 2], cx
call dword [esp + 0x2c]
add esp, 4
lea ecx, [esi + eax*2]
call fcn.0040e267
mov dword [esp], 0x401044
mov esi, eax
push ebx
call dword [esp + 0x2c]
add esp, 4
lea ecx, [ebx + eax*2]
call fcn.0040e267
pop ecx
mov edx, esi
mov ecx, eax
call fcn.00403260
jmp 0x40bf4e
mov ecx, ebx
call fcn.0040c4b7
xor eax, eax
cmp word [ebx], ax
je 0x40bf4e
call fcn.0040e215
push 0x20
mov esi, eax
pop eax
push eax
push ebx
call dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, ebx
test eax, eax
je 0x40bf3a
call fcn.0040e2ab
jmp 0x40bf3f
call fcn.0040e267
mov edx, esi
mov dword [esi + 4], eax
mov ecx, 0x421690
call fcn.0040e36c
mov edx, dword [esp + 0x14]
xor ebx, ebx
mov esi, dword [esp + 0x18]
mov dword [edx + edi*4], ebx
jmp 0x40c0d5
lea esi, [ebx + 2]
push 0x40234c
push esi
call ecx
pop ecx
pop ecx
test eax, eax
je 0x40c0e8
xor eax, eax
cmp word [esi], ax
je 0x40c0cd
mov ebx, dword [esp + 0x24]
push 0x402358
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x40c0c2
movzx ecx, word [esi]
cmp ecx, 0x3f
je 0x40c0b2
cmp ecx, 0x66
je 0x40c069
cmp ecx, 0x46
je 0x40c069
cmp ecx, 0x78
je 0x40bfd4
cmp ecx, 0x58
je 0x40bfd4
mov dl, 1
call fcn.0040c1cd
add esi, 2
xor eax, eax
cmp word [esi], ax
jne 0x40bf84
jmp 0x40c0cd
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x40c00d
inc edi
cmp edi, dword [esp + 0x1c]
jae 0x40bff9
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + edi*4]
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x40c00d
xor ebx, ebx
push 0x426
push ebx
call fcn.004053f6
pop ecx
pop ecx
movzx ecx, word [esi]
jmp 0x40c00f
xor ebx, ebx
push 0x2d
pop eax
cmp cx, ax
jne 0x40c030
cmp word [esi + 2], bx
jne 0x40c030
push 1
call dword [esp + 0x30]
pop ecx
mov ecx, eax
call fcn.0040c722
jmp 0x40c0cd
push 0x402368
lea eax, [esp + 0x2c]
push esi
push eax
call dword [esp + 0x3c]
add esp, 0xc
test eax, eax
je 0x40c055
push esi
push 0x418
push ebx
call fcn.004053f6
add esp, 0xc
mov ecx, dword [esp + 0x28]
call fcn.0040c722
push dword [esp + 0x28]
call dword [esp + 0x38]
pop ecx
jmp 0x40c0cd
lea ebx, [esi + 2]
xor eax, eax
cmp word [ebx], ax
jne 0x40c093
inc edi
cmp edi, dword [esp + 0x1c]
jae 0x40c086
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + edi*4]
cmp word [ebx], ax
jne 0x40c093
push 0x425
push eax
call fcn.004053f6
pop ecx
pop ecx
call fcn.0040e215
mov ecx, ebx
mov esi, eax
call fcn.0040e267
mov edx, esi
mov dword [esi + 4], eax
mov ecx, 0x4323f0
call fcn.0040e36c
jmp 0x40c0cd
mov edx, dword [esp + 0x14]
mov cl, 1
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], cl
jmp 0x40c0d9
mov cx, word [esi + 4]
mov dl, 1
call fcn.0040c1cd
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x40be53
test cl, cl
je 0x40c0f6
call fcn.00405598
xor eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret