Function at 0x40d000
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push 0x440268
lea ecx, [ebp - 0x1cc]
call fcn.004147b0
lea ecx, [ebp - 0x1b4]
call fcn.00406010
lea eax, [ebp - 0x1cc]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405b50
add esp, 4
lea ecx, [ebp - 0x4c]
mov edx, eax
call fcn.00414d60
mov edx, dword [ebp - 0x20]
add esp, 4
cmp edx, 0x10
jb 0x40d07b
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d071
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbe1
push edx
push ecx
call fcn.00415fcc
add esp, 8
push 0x104
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x94], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d0b0
sub ecx, edx
lea eax, [ebp - 0x308]
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00414b30
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.00408b60
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0x43c10c
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004197f6
add esp, 0x38
test eax, eax
je 0x40d94c
push eax
call fcn.00419884
add esp, 4
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004147b0
cmp dword [ebp - 4], 0x10
lea ecx, [ebp - 0x200]
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push ecx
push eax
call fcn.0041a34f
mov edx, dword [ebp - 4]
or edi, 0xffffffff
add esp, 8
test eax, eax
cmove edi, dword [ebp - 0x1ec]
cmp edx, 0x10
jb 0x40d17e
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d174
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbe6
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
call fcn.0041a3d3
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov ebx, eax
lea eax, [ebp - 0x1c]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [ebx], 0
call fcn.0041b909
add esp, 0xc
cmp esi, dword [ebp - 0x1c]
je 0x40dbeb
cmp dword [ebx], 0x22
je 0x40dbff
cmp edi, eax
jle 0x40d94c
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43fde8
call fcn.004147b0
mov ecx, esi
call fcn.00402fb0
mov ecx, esp
push 0x43fd70
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.0040c310
add esp, 0x78
lea ecx, [ebp - 0x34]
call fcn.00405b50
cmp dword [eax + 0x14], 0x10
jb 0x40d23a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40d275
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d26b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbf5
push edx
push ecx
call fcn.00415fcc
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x440310
call fcn.004147b0
lea ecx, [ebp - 0x184]
call fcn.00402fb0
add esp, 0x18
push eax
lea eax, [ebp - 0x1b4]
push eax
sub esp, 0x18
mov ecx, esp
push 0x440208
call fcn.004147b0
lea ecx, [ebp - 0x16c]
call fcn.00402fb0
add esp, 0x18
lea ecx, [ebp - 0x154]
mov edx, eax
call fcn.00414d60
add esp, 4
lea ecx, [ebp - 0x13c]
mov edx, eax
call fcn.00414c70
add esp, 4
mov ecx, eax
push 0x43c0fc
call fcn.004145a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x1cc]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x4400b8
call fcn.004147b0
lea ecx, [ebp - 0x19c]
call fcn.00402fb0
add esp, 0x1c
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00414d60
add esp, 4
lea ecx, [ebp - 0x10c]
mov edx, eax
call fcn.00414c70
add esp, 4
lea ecx, [ebp - 0xf4]
mov edx, eax
call fcn.00414d60
add esp, 4
mov ecx, eax
push 0x43c12c
call fcn.004145a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x94]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x43fb90
call fcn.004147b0
lea ecx, [ebp - 0x34]
call fcn.00402fb0
add esp, 0x1c
push eax
lea eax, [ebp - 0x1b4]
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0xdc]
call fcn.00414d60
add esp, 4
lea ecx, [ebp - 0xc4]
mov edx, eax
call fcn.00414c70
add esp, 4
lea ecx, [ebp - 0xac]
mov edx, eax
call fcn.00414d60
add esp, 4
mov ecx, eax
push 0x43c12c
call fcn.004145a0
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [eax]
push 0x43fd58
movups xmmword [ebp - 0x18], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.004147b0
lea ecx, [ebp - 0x1e8]
call fcn.00402fb0
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00414c70
add esp, 0x1c
call fcn.004046e0
mov edx, dword [ebp - 4]
add esp, 0x18
cmp edx, 0x10
jb 0x40d481
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d477
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x98]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40d4cd
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d4c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
cmp edx, 0x10
jb 0x40d522
mov ecx, dword [ebp - 0xc4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d518
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
cmp edx, 0x10
jb 0x40d577
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d56d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
cmp edx, 0x10
jb 0x40d5c6
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d5bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp edx, 0x10
jb 0x40d612
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d608
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp edx, 0x10
jb 0x40d667
mov ecx, dword [ebp - 0x10c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d65d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0xf
mov byte [ebp - 0x10c], 0
cmp edx, 0x10
jb 0x40d6bc
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d6b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0xf
mov byte [ebp - 0x124], 0
cmp edx, 0x10
jb 0x40d70b
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d701
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp edx, 0x10
jb 0x40d757
mov ecx, dword [ebp - 0x13c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d74d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0xf
mov byte [ebp - 0x13c], 0
cmp edx, 0x10
jb 0x40d7ac
mov ecx, dword [ebp - 0x154]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0xf
mov byte [ebp - 0x154], 0
cmp edx, 0x10
jb 0x40d801
mov ecx, dword [ebp - 0x16c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0xf
mov byte [ebp - 0x16c], 0
cmp edx, 0x10
jb 0x40d856
mov ecx, dword [ebp - 0x184]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d84c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0xf
mov byte [ebp - 0x184], 0
cmp edx, 0x10
jb 0x40d8ab
mov ecx, dword [ebp - 0x19c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
cmp edx, 0x10
jb 0x40d8fa
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x40d9a5
mov ecx, dword [ebp - 0x1e8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfa
push edx
push ecx
call fcn.00415fcc
add esp, 8
jmp 0x40d9a5
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x440418
call fcn.004147b0
mov ecx, esi
call fcn.00402fb0
mov ecx, esp
push 0x43fd70
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.0040c310
add esp, 0x78
mov edx, dword [ebp - 0x80]
cmp edx, 0x10
jb 0x40d9dc
mov ecx, dword [ebp - 0x94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x40da10
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x40da5c
mov ecx, dword [ebp - 0x1b4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x1b8]
cmp edx, 0x10
jb 0x40da96
mov ecx, dword [ebp - 0x1cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40daca
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dac0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
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 0x40db10
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
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 0x40db56
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
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 0x40db98
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
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 0x40dbda
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc09
push edx
push ecx
call fcn.00415fcc
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041bb2d
call fcn.0041bb2d
push str.invalid_stoi_argument
call fcn.00415719
call fcn.0041bb2d
call fcn.0041bb2d
push str.stoi_argument_out_of_range
call fcn.00415759
call fcn.0041bb2d
int3