Function at 0x40d340
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44c274
lea ecx, [ebp - 0x170]
call fcn.004157d0
lea ecx, [ebp - 0x158]
call fcn.00406520
lea eax, [ebp - 0x170]
push eax
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00405fc0
add esp, 4
lea ecx, [ebp - 0x128]
mov edx, eax
call fcn.00416a60
mov edx, dword [ebp - 0x178]
add esp, 4
cmp edx, 0x10
jb 0x40d3d1
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df78
push edx
push ecx
call fcn.00418e03
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 0x40d410
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00416360
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004157d0
call fcn.004088a0
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x448220
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041d6d4
add esp, 0x38
test eax, eax
je 0x40dcc3
push eax
call fcn.0041daaa
add esp, 4
call fcn.0041ed12
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.00420808
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x174]
je 0x40df7d
cmp dword [edi], 0x22
je 0x40df91
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.004157d0
call fcn.00405420
add esp, 0x18
cmp eax, ebx
jle 0x40dcc3
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44bdf4
call fcn.004157d0
mov ecx, esi
call fcn.00403500
mov ecx, esp
push 0x44bd7c
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004157d0
call fcn.0040c640
add esp, 0x78
lea ecx, [ebp - 0x18c]
call fcn.00405fc0
cmp dword [eax + 0x14], 0x10
jb 0x40d551
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x178]
cmp edx, 0x10
jb 0x40d592
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df87
push edx
push ecx
call fcn.00418e03
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x44c31c
call fcn.004157d0
lea ecx, [ebp - 0x2c4]
call fcn.00403500
add esp, 0x18
push eax
lea eax, [ebp - 0x158]
push eax
sub esp, 0x18
mov ecx, esp
push 0x44c214
call fcn.004157d0
lea ecx, [ebp - 0x2ac]
call fcn.00403500
add esp, 0x18
lea ecx, [ebp - 0x294]
mov edx, eax
call fcn.00416a60
add esp, 4
lea ecx, [ebp - 0x27c]
mov edx, eax
call fcn.00416970
add esp, 4
mov ecx, eax
push 0x448248
call fcn.004156a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1d4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x170]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x44c0c4
call fcn.004157d0
lea ecx, [ebp - 0x2dc]
call fcn.00403500
add esp, 0x1c
lea edx, [ebp - 0x1d4]
lea ecx, [ebp - 0x264]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00416a60
add esp, 4
lea ecx, [ebp - 0x24c]
mov edx, eax
call fcn.00416970
add esp, 4
lea ecx, [ebp - 0x234]
mov edx, eax
call fcn.00416a60
add esp, 4
mov ecx, eax
push 0x448240
call fcn.004156a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1bc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1ac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x140]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x44bbb4
call fcn.004157d0
lea ecx, [ebp - 0x18c]
call fcn.00403500
add esp, 0x1c
push eax
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 0x1bc]
lea ecx, [ebp - 0x21c]
call fcn.00416a60
add esp, 4
lea ecx, [ebp - 0x204]
mov edx, eax
call fcn.00416970
add esp, 4
lea ecx, [ebp - 0x1ec]
mov edx, eax
call fcn.00416a60
add esp, 4
mov ecx, eax
push 0x448240
call fcn.004156a0
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [eax]
push 0x44bd64
movups xmmword [ebp - 0x1a4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x194], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.004157d0
lea ecx, [ebp - 0x2f4]
call fcn.00403500
push eax
lea edx, [ebp - 0x1a4]
mov ecx, esi
call fcn.00416970
add esp, 0x1c
call fcn.00404720
mov edx, dword [ebp - 0x190]
add esp, 0x18
cmp edx, 0x10
jb 0x40d7c2
mov ecx, dword [ebp - 0x1a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40d817
mov ecx, dword [ebp - 0x1ec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d80d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40d86c
mov ecx, dword [ebp - 0x204]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d862
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40d8c1
mov ecx, dword [ebp - 0x21c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40d916
mov ecx, dword [ebp - 0x1bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d90c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40d96b
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d961
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40d9c0
mov ecx, dword [ebp - 0x24c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40da15
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40da6a
mov ecx, dword [ebp - 0x1d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40dabf
mov ecx, dword [ebp - 0x27c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dab5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40db14
mov ecx, dword [ebp - 0x294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40db69
mov ecx, dword [ebp - 0x2ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40dbbe
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40dc13
mov ecx, dword [ebp - 0x2dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40dc68
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
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 0x40dd1c
mov ecx, dword [ebp - 0x2f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df8c
push edx
push ecx
call fcn.00418e03
add esp, 8
jmp 0x40dd1c
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x44c424
call fcn.004157d0
mov ecx, esi
call fcn.00403500
mov ecx, esp
push 0x44bd7c
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004157d0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004157d0
call fcn.0040c640
add esp, 0x78
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x40dd56
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40dd90
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
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 0x40dde5
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dddb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40de1f
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40de53
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
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 0x40de99
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
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 0x40dedf
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ded5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
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 0x40df25
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
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 0x40df67
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df9b
push edx
push ecx
call fcn.00418e03
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041878c
mov esp, ebp
pop ebp
ret
call fcn.0042140f
push str.invalid_stoi_argument
call fcn.004177f2
call fcn.0042140f
call fcn.0042140f
push str.stoi_argument_out_of_range
call fcn.00417832
call fcn.0042140f
int3