Function at 0x401de0
Capabilities:
Get geographical location
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c67
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x406008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x498], eax
mov dword [0x4061a4], ecx
test esi, esi
je 0x401e32
cmp word [esi], 0
jne 0x401e48
push 4
lea eax, [ebp - 0x20]
push eax
push 3
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea esi, [ebp - 0x20]
cmp byte [0x4061a2], 0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x401e86
push 0x4061a8
call edi
cmp byte [0x4061a2], 0
jne 0x401e7b
push fcn.004014f0
mov byte [0x4061a2], 1
call fcn.004031fb
add esp, 4
push 0x4061a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4061a8
call edi
push 0x4061c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401eb7
mov byte [0x4061a1], 0
call fcn.004014f0
push 4
push esi
push 0x4061c0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x4061a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [0x4061a1], 0
mov al, 1
mov byte [ebp - 0x489], al
jne 0x402c9b
push 0x4061a8
call edi
cmp byte [0x4061a1], 0
mov dword [ebp - 4], 0
jne 0x402c83
push 0x4061c0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x18]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x228]
push 0x103
push eax
push dword [ebp - 0x4a0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_wcsrchr
xor ecx, ecx
add esp, 8
mov word [eax], cx
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x401f83
cmp word [eax], cx
je 0x401f83
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x430]
push str._slang_s._s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x401fa3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x430]
push str._slang_s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x404364
lea eax, [ebp - 0x430]
mov dword [ebp - 0x4a4], 0
push eax
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov esi, dword [ebp - 0x4a4]
add esp, 0xc
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x4c0], esi
mov byte [ebp - 4], 1
test eax, eax
jne 0x402c6e
test esi, esi
je 0x402c6e
push esi
push 1
mov dword [ebp - 0x474], eax
xor ecx, ecx
lea eax, [ebp - 0x475]
mov dword [ebp - 0x480], ecx
push 1
push eax
xor edi, edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 0x10
cmp eax, 1
jne 0x402115
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp - 0x480]
test eax, eax
jne 0x4020c0
cmp edi, 3
jae 0x4020c0
test edi, edi
jne 0x402058
cmp byte [ebp - 0x475], 0xef
jne 0x4020bb
lea edi, [eax + 1]
jmp 0x4020e0
cmp edi, 1
jne 0x402081
cmp byte [ebp - 0x475], 0xbb
jne 0x40206d
mov edi, 2
jmp 0x4020e0
push 1
push esi
call ecx
mov esi, eax
add esp, 8
mov eax, 1
mov byte [esi], 0xfe
jmp 0x4020b5
cmp edi, 2
jne 0x4020c0
cmp byte [ebp - 0x475], 0xbf
jne 0x402096
mov edi, 3
jmp 0x4020e0
push 1
push esi
call ecx
push 2
push eax
mov byte [eax], 0xfe
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov esi, eax
add esp, 0x10
mov eax, 2
mov byte [esi + 1], 0xbb
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov edi, 4
inc eax
push eax
push esi
mov dword [ebp - 0x480], eax
call ecx
mov ecx, dword [ebp - 0x480]
mov esi, eax
mov al, byte [ebp - 0x475]
add esp, 8
mov byte [ecx + esi - 1], al
push dword [ebp - 0x4a4]
lea eax, [ebp - 0x475]
push 1
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 0x10
cmp eax, 1
je 0x402030
mov dword [ebp - 0x474], esi
mov esi, dword [ebp - 0x498]
mov edi, dword [ebp - 0x480]
inc edi
push edi
push dword [ebp - 0x474]
call ecx
add esp, 8
mov dword [ebp - 0x474], eax
mov byte [edi + eax - 1], 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x402187
lea eax, [edi + edi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x49c], eax
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x474]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402187
cmp eax, edi
jne 0x402187
mov edi, dword [ebp - 0x49c]
jmp 0x40218f
xor edi, edi
mov dword [ebp - 0x49c], edi
push dword [ebp - 0x474]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x4c4], edi
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 2
push eax
push 0x40436c
push edi
mov dword [ebp - 0x4a8], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x46c], ecx
test ecx, ecx
je 0x402c5c
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x44c], 7
movups xmmword [ebp - 0x460], xmm0
mov word [ebp - 0x460], ax
mov edi, 7
mov dword [ebp - 0x438], eax
movups xmmword [ebp - 0x448], xmm0
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x434], edi
mov word [ebp - 0x448], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x470], eax
mov byte [ebp - 0x465], al
cmp word [ecx], ax
je 0x402b93
mov ecx, dword [ebp - 0x448]
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x464], ecx
test eax, eax
jne 0x402275
movzx eax, word [edx]
cmp eax, 0x23
je 0x4022d7
cmp eax, 0x22
jne 0x4022c2
mov eax, 1
mov dword [ebp - 0x470], eax
jmp 0x4022c8
cmp eax, 1
jne 0x4026f8
cmp byte [ebp - 0x465], 0
mov eax, dword [ebp - 0x46c]
movzx eax, word [eax]
je 0x402539
mov byte [ebp - 0x465], 0
cmp eax, 0x6e
jne 0x402371
push 1
push 0x40436c
lea ecx, [ebp - 0x460]
call fcn.00401b40
mov ecx, dword [ebp - 0x464]
mov edx, dword [ebp - 0x46c]
mov eax, dword [ebp - 0x470]
add edx, 2
mov dword [ebp - 0x46c], edx
cmp word [edx], 0
jne 0x402257
cmp dword [ebp - 0x450], 0
je 0x402b9f
cmp dword [ebp - 0x44c], 8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x4a0], edi
mov ecx, 0x406198
push eax
lea eax, [ebp - 0x4bc]
push eax
call fcn.004011f0
mov edx, dword [ebp - 0x4b4]
cmp byte [edx + 0xd], 0
jne 0x402acb
mov eax, dword [edx + 0x10]
nop word [eax + eax]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x402abe
test cx, cx
je 0x40236a
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x402abe
add edi, 4
add eax, 4
test cx, cx
jne 0x402340
xor eax, eax
jmp 0x402ac3
cmp eax, 0x72
jne 0x402382
push 1
push 0x404370
jmp 0x4022ab
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x47c], eax
cmp eax, edx
jae 0x4023d7
mov esi, dword [ebp - 0x488]
inc eax
cmp edx, 8
mov edx, dword [ebp - 0x47c]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
mov word [eax + edx*2], si
xor esi, esi
mov word [eax + edx*2 + 2], si
mov esi, dword [ebp - 0x498]
jmp 0x4022bc
mov ecx, dword [ebp - 0x47c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x402cb6
mov eax, dword [ebp - 0x44c]
inc ecx
mov dword [ebp - 0x494], ecx
or ecx, 7
mov dword [ebp - 0x490], eax
cmp ecx, 0x7ffffffe
jbe 0x402412
mov ecx, 0x7ffffffe
jmp 0x402439
mov edx, eax
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp dword [ebp - 0x490], eax
jbe 0x40242c
mov ecx, 0x7ffffffe
jmp 0x402439
mov eax, dword [ebp - 0x490]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x484], ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00401ae0
mov edx, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x494]
add edx, edx
cmp dword [ebp - 0x490], 8
mov dword [ebp - 0x450], ecx
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x44c], ecx
lea ecx, [edx + eax]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x484], ecx
push edx
jb 0x402503
mov eax, dword [ebp - 0x460]
push eax
push dword [ebp - 0x474]
mov dword [ebp - 0x47c], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x484]
add esp, 0xc
mov ecx, dword [ebp - 0x488]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x490]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x47c]
cmp ecx, 0x1000
jb 0x4024e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c68
mov eax, edx
push ecx
push eax
call fcn.00402fb1
mov eax, dword [ebp - 0x474]
add esp, 8
mov dword [ebp - 0x460], eax
jmp 0x4022b6
lea ecx, [ebp - 0x460]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x484]
add esp, 0xc
mov ecx, dword [ebp - 0x488]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x460], eax
jmp 0x4022b6
cmp eax, 0x5c
jne 0x40254a
mov byte [ebp - 0x465], 1
jmp 0x4022bc
cmp eax, 0x22
jne 0x402565
mov edx, dword [ebp - 0x46c]
mov eax, 2
mov dword [ebp - 0x470], eax
jmp 0x4022c8
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x488], eax
cmp eax, edx
jae 0x402596
mov esi, dword [ebp - 0x47c]
inc eax
cmp edx, 8
mov edx, dword [ebp - 0x488]
jmp 0x4023ae
mov ecx, dword [ebp - 0x488]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x402cb6
mov eax, dword [ebp - 0x44c]
inc ecx
mov dword [ebp - 0x494], ecx
or ecx, 7
mov dword [ebp - 0x490], eax
cmp ecx, 0x7ffffffe
jbe 0x4025d1
mov ecx, 0x7ffffffe
jmp 0x4025f8
mov edx, eax
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp dword [ebp - 0x490], eax
jbe 0x4025eb
mov ecx, 0x7ffffffe
jmp 0x4025f8
mov eax, dword [ebp - 0x490]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x474], ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00401ae0
mov edx, dword [ebp - 0x488]
mov ecx, dword [ebp - 0x494]
add edx, edx
cmp dword [ebp - 0x490], 8
mov dword [ebp - 0x450], ecx
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x44c], ecx
lea ecx, [eax + edx]
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x488], ecx
push edx
jb 0x4026c2
mov eax, dword [ebp - 0x460]
push eax
push dword [ebp - 0x484]
mov dword [ebp - 0x474], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x488]
add esp, 0xc
mov ecx, dword [ebp - 0x47c]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x490]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x474]
cmp ecx, 0x1000
jb 0x4026a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c68
mov eax, edx
push ecx
push eax
call fcn.00402fb1
mov eax, dword [ebp - 0x484]
add esp, 8
mov dword [ebp - 0x460], eax
jmp 0x4022b6
lea ecx, [ebp - 0x460]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x488]
add esp, 0xc
mov ecx, dword [ebp - 0x47c]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x460], eax
jmp 0x4022b6
cmp eax, 2
jne 0x402717
cmp word [edx], 0x3d
jne 0x4022c8
mov eax, 3
mov dword [ebp - 0x470], eax
jmp 0x4022c8
cmp eax, 3
jne 0x402736
cmp word [edx], 0x22
jne 0x4022c8
mov eax, 4
mov dword [ebp - 0x470], eax
jmp 0x4022c8
cmp eax, 4
jne 0x402ab0
cmp byte [ebp - 0x465], 0
mov eax, dword [ebp - 0x46c]
movzx eax, word [eax]
je 0x40297b
mov byte [ebp - 0x465], 0
cmp eax, 0x6e
jne 0x402790
push 1
push 0x40436c
lea ecx, [ebp - 0x448]
call fcn.00401b40
mov edi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x464], ecx
jmp 0x4022bc
cmp eax, 0x72
jne 0x4027c4
push 1
push 0x404370
lea ecx, [ebp - 0x448]
call fcn.00401b40
mov edi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x464], ecx
jmp 0x4022bc
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x47c], edx
cmp edx, edi
jae 0x40281d
lea eax, [edx + 1]
cmp edi, 8
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x448]
cmovae eax, ecx
mov ecx, dword [ebp - 0x474]
mov word [eax + edx*2], cx
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
mov edi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x464], ecx
jmp 0x4022bc
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 1
jb 0x402cb6
lea eax, [edx + 1]
mov edx, edi
mov edi, eax
mov dword [ebp - 0x494], eax
or edi, 7
mov dword [ebp - 0x488], edx
cmp edi, 0x7ffffffe
jbe 0x402852
mov edi, 0x7ffffffe
jmp 0x402870
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402868
mov edi, 0x7ffffffe
jmp 0x402870
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x480], edi
push eax
lea ecx, [ebp - 0x448]
call fcn.00401ae0
cmp dword [ebp - 0x488], 8
mov ecx, dword [ebp - 0x494]
mov dword [ebp - 0x438], ecx
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x434], edi
lea edx, [ecx + ecx]
lea ecx, [eax + edx]
mov dword [ebp - 0x47c], ecx
push edx
jb 0x40293f
push dword [ebp - 0x464]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x474]
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x488]
lea edx, [eax*2 + 2]
mov eax, dword [ebp - 0x464]
mov ecx, eax
cmp edx, 0x1000
jb 0x40291e
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x464], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x402c68
mov eax, dword [ebp - 0x464]
push edx
push eax
call fcn.00402fb1
mov ecx, dword [ebp - 0x484]
add esp, 8
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x448], ecx
jmp 0x4022bc
lea ecx, [ebp - 0x448]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x47c]
add esp, 0xc
mov ecx, dword [ebp - 0x474]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x448], ecx
jmp 0x4022bc
cmp eax, 0x5c
jne 0x40298c
mov byte [ebp - 0x465], 1
jmp 0x4022bc
cmp eax, 0x22
jne 0x4029a7
mov edx, dword [ebp - 0x46c]
mov eax, 5
mov dword [ebp - 0x470], eax
jmp 0x4022c8
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x47c], edx
cmp edx, edi
jb 0x4027da
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 1
jb 0x402cb6
lea eax, [edx + 1]
mov edx, edi
mov edi, eax
mov dword [ebp - 0x494], eax
or edi, 7
mov dword [ebp - 0x488], edx
cmp edi, 0x7ffffffe
jbe 0x4029f6
mov edi, 0x7ffffffe
jmp 0x402a14
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x402a0c
mov edi, 0x7ffffffe
jmp 0x402a14
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x480], edi
push eax
lea ecx, [ebp - 0x448]
call fcn.00401ae0
cmp dword [ebp - 0x488], 8
mov ecx, dword [ebp - 0x494]
mov dword [ebp - 0x438], ecx
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x434], edi
lea edx, [ecx + ecx]
lea ecx, [eax + edx]
mov dword [ebp - 0x47c], ecx
push edx
jb 0x402a74
push dword [ebp - 0x464]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x47c]
jmp 0x4028cf
lea ecx, [ebp - 0x448]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x47c]
add esp, 0xc
mov ecx, dword [ebp - 0x474]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x448], ecx
jmp 0x4022bc
cmp eax, 5
je 0x4022d7
jmp 0x4022c8
sbb eax, eax
or eax, 1
test eax, eax
jle 0x402b58
cmp dword [0x40619c], 0x5d1745d
je 0x402cbb
mov edi, dword [0x406198]
mov dword [ebp - 0x4b0], 0x406198
push 0x2c
mov byte [ebp - 4], 5
mov dword [ebp - 0x4ac], 0
call fcn.00402f81
mov ecx, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4a0]
add esp, 4
xorps xmm0, xmm0
mov dword [ecx + 0x10], eax
xor eax, eax
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 7
mov word [ecx + 0x14], ax
push ecx
push dword [ebp - 0x4b8]
mov dword [ecx], edi
push dword [ebp - 0x4bc]
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov word [ecx + 0xc], ax
mov ecx, 0x406198
mov dword [ebp - 0x4ac], eax
call fcn.004018a0
mov edx, eax
lea ecx, [edx + 0x14]
lea eax, [ebp - 0x448]
cmp ecx, eax
je 0x402b9f
cmp dword [ebp - 0x480], 8
push dword [ebp - 0x438]
cmovae eax, dword [ebp - 0x464]
push eax
call fcn.00401cc0
mov eax, dword [ebp - 0x448]
mov edi, dword [ebp - 0x434]
mov dword [ebp - 0x464], eax
jmp 0x402ba5
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x464], eax
mov edi, dword [ebp - 0x480]
lea eax, [ebp - 0x4a8]
push eax
push 0x40436c
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 3
cmp edi, 8
jb 0x402c08
mov eax, dword [ebp - 0x464]
lea edi, [edi*2 + 2]
mov ecx, eax
cmp edi, 0x1000
jb 0x402bfe
mov eax, dword [ecx - 4]
add edi, 0x23
sub ecx, eax
mov dword [ebp - 0x464], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x402c68
mov eax, dword [ebp - 0x464]
push edi
push eax
call fcn.00402fb1
add esp, 8
mov ecx, dword [ebp - 0x44c]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x402c48
mov edx, dword [ebp - 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c68
push ecx
push edx
call fcn.00402fb1
add esp, 8
mov ecx, dword [ebp - 0x46c]
test ecx, ecx
jne 0x4021e0
mov edi, dword [ebp - 0x49c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x402c75
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 0x489], 0
test esi, esi
je 0x402c83
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x4061a8
mov byte [0x4061a1], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x489]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402f73
mov esp, ebp
pop ebp
ret
call fcn.00401ad0
call fcn.00401ac0
int3