Function at 0x40c7a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x437234
lea ecx, [ebp - 0x170]
call fcn.00413aa0
lea ecx, [ebp - 0x158]
call fcn.00405be0
lea eax, [ebp - 0x170]
push eax
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00405680
add esp, 4
lea ecx, [ebp - 0x128]
mov edx, eax
call fcn.00414040
mov edx, dword [ebp - 0x178]
add esp, 4
cmp edx, 0x10
jb 0x40c831
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c827
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d483
push edx
push ecx
call fcn.004153be
add esp, 8
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x140], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c870
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00413e00
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413aa0
call fcn.00407f90
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x4339e8
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041768c
add esp, 0x38
test eax, eax
je 0x40d1ce
push eax
call fcn.0041771a
add esp, 4
call fcn.00418310
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 0x174]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.004197d0
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x174]
je 0x40d488
cmp dword [edi], 0x22
je 0x40d49c
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413aa0
call fcn.00404ae0
add esp, 0x18
cmp eax, ebx
jle 0x40d1ce
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x436db4
call fcn.00413aa0
mov ecx, esi
call fcn.00402bc0
mov ecx, esp
push 0x436d3c
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00413aa0
call fcn.0040ba00
add esp, 0x78
lea ecx, [ebp - 0x18c]
call fcn.00405680
cmp dword [eax + 0x14], 0x10
jb 0x40c9b1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x178]
cmp edx, 0x10
jb 0x40c9f2
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d492
push edx
push ecx
call fcn.004153be
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x4372dc
call fcn.00413aa0
lea ecx, [ebp - 0x2c4]
call fcn.00402bc0
add esp, 0x18
push eax
lea eax, [ebp - 0x158]
push eax
sub esp, 0x18
mov ecx, esp
push 0x4371d4
call fcn.00413aa0
lea ecx, [ebp - 0x2ac]
call fcn.00402bc0
add esp, 0x18
lea ecx, [ebp - 0x294]
mov edx, eax
call fcn.00414040
add esp, 4
lea ecx, [ebp - 0x27c]
mov edx, eax
call fcn.00413f50
mov ecx, eax
add esp, 4
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x40ca7c
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40ca74
mov eax, dword [ecx]
mov word [eax + edx], 0x22
jmp 0x40ca99
push 1
push 0x433a10
mov byte [ebp - 0x174], 0
push dword [ebp - 0x174]
push 1
call fcn.00414550
mov ecx, eax
movups xmm0, xmmword [ecx]
lea eax, [ebp - 0x170]
push eax
movups xmmword [ebp - 0x1d4], xmm0
sub esp, 0x1c
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x1c4], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, esp
push 0x437084
call fcn.00413aa0
lea ecx, [ebp - 0x2dc]
call fcn.00402bc0
add esp, 0x1c
lea edx, [ebp - 0x1d4]
lea ecx, [ebp - 0x264]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00414040
add esp, 4
lea ecx, [ebp - 0x24c]
mov edx, eax
call fcn.00413f50
add esp, 4
lea ecx, [ebp - 0x234]
mov edx, eax
call fcn.00414040
mov ecx, eax
add esp, 4
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x40cb49
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40cb41
mov eax, dword [ecx]
mov word [eax + edx], 0x20
jmp 0x40cb66
push 1
push 0x433a08
mov byte [ebp - 0x174], 0
push dword [ebp - 0x174]
push 1
call fcn.00414550
mov ecx, eax
movups xmm0, xmmword [ecx]
lea eax, [ebp - 0x140]
push eax
movups xmmword [ebp - 0x1bc], xmm0
sub esp, 0x1c
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x1ac], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, esp
push 0x436b74
call fcn.00413aa0
lea ecx, [ebp - 0x18c]
call fcn.00402bc0
add esp, 0x1c
lea edx, [ebp - 0x1bc]
lea ecx, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00414040
add esp, 4
lea ecx, [ebp - 0x204]
mov edx, eax
call fcn.00413f50
add esp, 4
lea ecx, [ebp - 0x1ec]
mov edx, eax
call fcn.00414040
mov ecx, eax
add esp, 4
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x40cc16
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40cc0e
mov eax, dword [ecx]
mov word [eax + edx], 0x20
jmp 0x40cc33
push 1
push 0x433a08
mov byte [ebp - 0x174], 0
push dword [ebp - 0x174]
push 1
call fcn.00414550
mov ecx, eax
movups xmm0, xmmword [ecx]
sub esp, 0x18
mov esi, esp
sub esp, 0x18
movups xmmword [ebp - 0x1a4], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x194], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, esp
push 0x436d24
call fcn.00413aa0
lea ecx, [ebp - 0x2f4]
call fcn.00402bc0
push eax
lea edx, [ebp - 0x1a4]
mov ecx, esi
call fcn.00413f50
add esp, 0x1c
call fcn.00403de0
mov edx, dword [ebp - 0x190]
add esp, 0x18
cmp edx, 0x10
jb 0x40cccd
mov ecx, dword [ebp - 0x1a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ccc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0xf
mov byte [ebp - 0x1a4], 0
cmp edx, 0x10
jb 0x40cd22
mov ecx, dword [ebp - 0x1ec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0xf
mov byte [ebp - 0x1ec], 0
cmp edx, 0x10
jb 0x40cd77
mov ecx, dword [ebp - 0x204]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0xf
mov byte [ebp - 0x204], 0
cmp edx, 0x10
jb 0x40cdcc
mov ecx, dword [ebp - 0x21c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cdc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0xf
mov byte [ebp - 0x21c], 0
cmp edx, 0x10
jb 0x40ce21
mov ecx, dword [ebp - 0x1bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0xf
mov byte [ebp - 0x1bc], 0
cmp edx, 0x10
jb 0x40ce76
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
cmp edx, 0x10
jb 0x40cecb
mov ecx, dword [ebp - 0x24c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cec1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
cmp edx, 0x10
jb 0x40cf20
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp edx, 0x10
jb 0x40cf75
mov ecx, dword [ebp - 0x1d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0xf
mov byte [ebp - 0x1d4], 0
cmp edx, 0x10
jb 0x40cfca
mov ecx, dword [ebp - 0x27c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cfc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
cmp edx, 0x10
jb 0x40d01f
mov ecx, dword [ebp - 0x294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d015
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], 0
cmp edx, 0x10
jb 0x40d074
mov ecx, dword [ebp - 0x2ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d06a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0xf
mov byte [ebp - 0x2ac], 0
cmp edx, 0x10
jb 0x40d0c9
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp edx, 0x10
jb 0x40d11e
mov ecx, dword [ebp - 0x2dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d114
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
cmp edx, 0x10
jb 0x40d173
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d169
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x2e0]
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0xf
mov byte [ebp - 0x18c], 0
cmp edx, 0x10
jb 0x40d227
mov ecx, dword [ebp - 0x2f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d1c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d497
push edx
push ecx
call fcn.004153be
add esp, 8
jmp 0x40d227
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x4373cc
call fcn.00413aa0
mov ecx, esi
call fcn.00402bc0
mov ecx, esp
push 0x436d3c
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413aa0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00413aa0
call fcn.0040ba00
add esp, 0x78
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x40d261
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d257
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40d29b
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d291
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x40d2f0
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d2e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40d32a
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d320
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40d35e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d354
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40d3a4
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d39a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x40d3ea
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x40d430
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d426
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp + 0x7c]
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x64], 0xf
mov byte [ebp + 0x50], 0
cmp edx, 0x10
jb 0x40d472
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d468
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4a6
push edx
push ecx
call fcn.004153be
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414d4c
mov esp, ebp
pop ebp
ret
call fcn.004199f4
push str.invalid_stoi_argument
call fcn.00414cec
call fcn.004199f4
call fcn.004199f4
push str.stoi_argument_out_of_range
call fcn.00414d2c
call fcn.004199f4
int3