Function at 0x402180
Capabilities:
Get file system object information
Resolve function by parsing pe exports
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d6167
push eax
mov dword fs:[0], esp
sub esp, 0x678
push ebx
push ebp
push esi
mov esi, dword [esp + 0x694]
push edi
push 0x4ee308
push esi
call fcn.004c7f40
add esp, 8
test eax, eax
jne 0x4030f5
push 0x80
mov dword [esp + 0x34], 0x4d86f4
call fcn.004c7e90
xor ebp, ebp
mov ebx, 0x1f
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ecx
mov al, byte [0x4fbe40]
lea edi, [esp + 0x429]
mov byte [esp + 0x428], al
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x220]
lea edx, [esp + 0x8c]
push ecx
push edx
mov dword [esp + 0x69c], ebp
mov dword [esp + 0x4c], 1
mov dword [esp + 0x74], ebp
mov dword [esp + 0x98], ebp
stosb byte es:[edi], al
mov dword [esp + 0x94], esi
call fcn.00401be0
add esp, 0xc
mov edi, 2
test eax, eax
je 0x402424
mov esi, dword [sym.imp.kernel32.dll_lstrcmpi]
lea eax, [esp + 0x21c]
push 0x4ee354
push eax
mov ebx, 1
call esi
test eax, eax
jne 0x402271
mov dword [esp + 0x68], ebx
jmp 0x4023ff
lea ecx, [esp + 0x21c]
push 0x4ee350
push ecx
call esi
test eax, eax
jne 0x402294
mov dword [esp + 0x68], ebx
mov dword [esp + 0x8c], ebx
jmp 0x4023ff
lea edx, [esp + 0x21c]
push 0x4ee344
push edx
call esi
test eax, eax
jne 0x4022b2
mov dword [0x4fb8d8], ebx
jmp 0x4023ff
lea eax, [esp + 0x21c]
push 0x4ee340
push eax
call esi
test eax, eax
jne 0x4022d0
mov dword [0x4fb8f0], edi
jmp 0x4023ff
lea ecx, [esp + 0x21c]
push 0x4ee330
push ecx
call esi
test eax, eax
jne 0x4022ee
mov dword [0x4fb94c], ebp
jmp 0x4023ff
lea edx, [esp + 0x21c]
push 0x4ee320
push edx
call esi
test eax, eax
jne 0x40230c
mov dword [0x4fb94c], ebx
jmp 0x4023ff
lea eax, [esp + 0x21c]
push 0x4ee314
push eax
call esi
test eax, eax
jne 0x40232a
mov dword [0x4fb94c], edi
jmp 0x4023ff
lea ecx, [esp + 0x21c]
push 0x4ee30c
push ecx
call esi
test eax, eax
jne 0x402362
lea edx, [esp + 0x424]
lea eax, [esp + 0x88]
push edx
push eax
call fcn.00401be0
add esp, 8
test eax, eax
je 0x40320a
jmp 0x4023ff
lea ecx, [esp + 0x21c]
push ecx
call fcn.00442c90
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4023ff
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x4023eb
mov ecx, dword [esp + 0x44]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004c7e90
mov ebp, eax
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
push eax
call fcn.004c7e56
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpi]
add eax, ecx
add esp, 8
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], eax
mov edi, 2
xor ebp, ebp
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.00401be0
add esp, 8
test eax, eax
jne 0x402250
mov ebx, 0x1f
mov esi, 0x4d86f4
push 0x80
mov dword [esp + 0x18], esi
call fcn.004c7e90
mov edi, pe_nt_image_headers32
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edi
push 0x80
mov byte [esp + 0x698], 1
mov dword [esp + 0x54], esi
call fcn.004c7e90
xor ecx, ecx
add esp, 8
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], edi
mov eax, 1
mov byte [esp + 0x690], 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x402714
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x4024b5
test ecx, ecx
jl 0x4024b5
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ecx*4]
jmp 0x4024b7
xor eax, eax
mov edi, dword [sym.imp.kernel32.dll_lstrcpy]
lea ecx, [esp + 0x114]
push eax
push ecx
call edi
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
lea edx, [esp + 0x114]
push edx
call esi
cmp byte [esp + eax + 0x113], 0x5c
jne 0x402503
lea eax, [esp + 0x114]
push eax
call esi
cmp eax, 3
jle 0x402503
lea ecx, [esp + 0x114]
push ecx
call esi
mov byte [esp + eax + 0x113], 0
lea edx, [esp + 0x114]
push 0
push edx
lea eax, [esp + 0x11c]
push 0x105
push eax
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
lea ecx, [esp + 0x31c]
lea edx, [esp + 0x114]
push ecx
push edx
call fcn.00444d80
add esp, 8
test eax, eax
jne 0x40254e
lea eax, [esp + 0x114]
lea ecx, [esp + 0x31c]
push eax
push ecx
call edi
lea edx, [esp + 0x31c]
push 0x2a
push edx
call fcn.004c81f0
add esp, 8
test eax, eax
jne 0x40266f
lea eax, [esp + 0x31c]
push 0x3f
push eax
call fcn.004c81f0
add esp, 8
test eax, eax
jne 0x40266f
push 0x800
lea ecx, [esp + 0x52c]
push 0x160
push ecx
lea edx, [esp + 0x328]
push eax
push edx
call dword [sym.imp.shell32.dll_SHGetFileInfo]
test eax, eax
je 0x402655
mov eax, dword [esp + 0x530]
shr eax, 0x1d
and eax, 1
test eax, eax
je 0x40266f
lea ecx, [esp + 0x31c]
push ecx
call fcn.00442c90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4026fb
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x40263c
mov ecx, dword [esp + 0x60]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004c7e90
mov ebp, eax
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x54]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x54]
push eax
call fcn.004c7e56
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
add esp, 8
add eax, ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
jmp 0x4026fb
lea eax, [esp + 0x31c]
push 0
push eax
call fcn.004c818e
add esp, 8
test eax, eax
jne 0x4026fb
lea ecx, [esp + 0x31c]
push ecx
call fcn.00442c90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4026fb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x4026e7
mov ecx, dword [esp + 0x28]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004c7e90
mov ebp, eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c7e56
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add esp, 8
add eax, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4024a0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x402c69
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40274c
mov ecx, dword [0x4ee054]
mov edx, dword [0x4fbe20]
push 0
push ecx
push 0x1fd
push 0
push edx
call fcn.00443680
add esp, 0x14
jmp 0x402b74
push 0x80
mov dword [esp + 0x70], 0x4d86f4
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x1f
mov dword [esp + 0x80], pe_nt_image_headers32
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
mov byte [esp + 0x690], 3
mov dword [esp + 0x7c], 1
mov dword [esp + 0x68], edi
jle 0x402a7d
jmp 0x4027a8
mov edi, dword [esp + 0x68]
cmp edi, eax
jge 0x4027b9
test edi, edi
jl 0x4027b9
mov eax, dword [esp + 0x18]
mov esi, dword [eax + edi*4]
jmp 0x4027bb
xor esi, esi
push 0x2a
push esi
call fcn.004c81f0
add esp, 8
test eax, eax
jne 0x40288d
push 0x3f
push esi
call fcn.004c81f0
add esp, 8
test eax, eax
jne 0x40288d
cmp edi, dword [esp + 0x1c]
jge 0x4027f4
test edi, edi
jl 0x4027f4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + edi*4]
jmp 0x4027f6
xor eax, eax
push eax
call fcn.00442c90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402a68
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x402874
mov ecx, dword [esp + 0x80]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004c7e90
mov ebp, eax
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x74]
push eax
call fcn.004c7e56
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
add esp, 8
add eax, ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
jmp 0x402a68
lea ecx, [esp + 0x94]
call fcn.0041e520
lea ecx, [esp + 0x90]
lea edx, [esp + 0x528]
push ecx
push edx
push 0x104
push esi
mov byte [esp + 0x6a0], 4
mov dword [esp + 0xb4], 1
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4028ec
push eax
lea eax, [esp + 0x320]
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
mov ecx, dword [esp + 0x90]
mov byte [ecx], 0
lea edx, [esp + 0x31c]
push 0
lea eax, [esp + 0x52c]
push edx
push eax
lea ecx, [esp + 0xa0]
mov dword [0x4ee794], 0
call fcn.0041e6d0
mov ecx, dword [esp + 0x9c]
cmp ecx, 2
jl 0x40293f
push 0x403b30
push 4
push ecx
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.004c7fc0
mov ecx, dword [esp + 0xac]
add esp, 0x10
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x402a54
jmp 0x402953
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x402967
test eax, eax
jl 0x402967
mov edx, dword [esp + 0x98]
mov eax, dword [edx + eax*4]
jmp 0x402969
xor eax, eax
mov edx, dword [eax + 8]
test edx, edx
jne 0x402a43
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x40298c
test eax, eax
jl 0x40298c
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + eax*4]
jmp 0x40298e
xor eax, eax
mov eax, dword [eax + 0x68]
lea edx, [esp + 0x528]
push eax
lea eax, [esp + 0x118]
push edx
push eax
call fcn.00442e30
lea ecx, [esp + 0x120]
push ecx
call fcn.00442c90
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402a3c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x402a28
mov ecx, dword [esp + 0x80]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004c7e90
mov ebp, eax
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov edi, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x74]
push eax
call fcn.004c7e56
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
add esp, 8
add eax, ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40294f
lea ecx, [esp + 0x94]
mov byte [esp + 0x690], 3
call fcn.0041e630
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x68], ecx
jl 0x4027a4
lea ecx, [esp + 0xb4]
call fcn.00445aa0
mov ecx, dword [0x4fbe20]
mov eax, dword [0x4fba24]
mov dword [esp + 0xb4], ecx
xor ebx, ebx
mov ecx, 0xc
mov esi, 0x4fb9b5
lea edi, [esp + 0xbc]
mov dword [esp + 0xb8], ebx
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
je 0x402ad1
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x108], 1
cmp eax, ebx
je 0x402ad8
mov dword [esp + 0x108], ebx
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xb4]
push eax
push ecx
mov dword [esp + 0x114], edx
call fcn.0044a9e0
mov edx, dword [0x4ee274]
add esp, 8
mov ecx, 0xc
lea esi, [esp + 0xbc]
mov edi, 0x4fb9b5
push edx
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, 0x4fc150
call fcn.00451eb0
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x690], 2
cmp eax, ebx
mov dword [esp + 0x6c], 0x4d86f4
je 0x402b67
mov eax, dword [esp + 0x74]
xor esi, esi
cmp eax, ebx
jle 0x402b67
cmp esi, eax
jge 0x402b53
cmp esi, ebx
jl 0x402b53
mov eax, dword [esp + 0x70]
mov eax, dword [eax + esi*4]
jmp 0x402b55
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x78]
add esp, 4
inc esi
cmp esi, eax
jl 0x402b46
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004c7e56
add esp, 4
mov eax, dword [esp + 0x5c]
mov edi, 0x4d86f4
test eax, eax
mov byte [esp + 0x690], 1
mov dword [esp + 0x4c], edi
je 0x402bbc
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x402bbc
cmp esi, eax
jge 0x402ba8
test esi, esi
jl 0x402ba8
mov edx, dword [esp + 0x50]
mov eax, dword [edx + esi*4]
jmp 0x402baa
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x58]
add esp, 4
inc esi
cmp esi, eax
jl 0x402b9b
mov eax, dword [esp + 0x50]
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov byte [esp + 0x690], 0
mov dword [esp + 0x14], edi
je 0x402c0c
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x402c0c
cmp esi, eax
jge 0x402bf8
test esi, esi
jl 0x402bf8
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + esi*4]
jmp 0x402bfa
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x402beb
mov edx, dword [esp + 0x18]
push edx
call fcn.004c7e56
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x690], 0xffffffff
mov dword [esp + 0x30], edi
je 0x402c5f
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x402c5f
cmp esi, eax
jge 0x402c4b
test esi, esi
jl 0x402c4b
mov eax, dword [esp + 0x34]
mov eax, dword [eax + esi*4]
jmp 0x402c4d
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x402c3e
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x403275
mov al, byte [esp + 0x424]
test al, al
je 0x402e94
mov ecx, dword [0x4fbe1c]
lea edx, [esp + 0x424]
push edx
call fcn.0043eae0
test eax, eax
je 0x402d9c
cmp dword [0x4fb8f0], 2
jne 0x402ca7
mov ecx, dword [0x4fbe1c]
call fcn.0043b490
mov eax, dword [0x4fbe1c]
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.user32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov edi, 0x4d86f4
test eax, eax
mov byte [esp + 0x690], 1
mov dword [esp + 0x4c], edi
je 0x402cfe
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x402cfe
cmp esi, eax
jge 0x402cea
test esi, esi
jl 0x402cea
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + esi*4]
jmp 0x402cec
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x58]
add esp, 4
inc esi
cmp esi, eax
jl 0x402cdd
mov edx, dword [esp + 0x50]
push edx
call fcn.004c7e56
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov byte [esp + 0x690], 0
mov dword [esp + 0x14], edi
je 0x402d45
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x402d45
push esi
lea ecx, [esp + 0x18]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x402d29
mov eax, dword [esp + 0x18]
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x690], 0xffffffff
mov dword [esp + 0x30], edi
je 0x4030e8
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x4030e8
push esi
lea ecx, [esp + 0x34]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x402d7b
jmp 0x4030e8
mov edx, dword [0x4ee054]
mov eax, dword [0x4fbe20]
push 0
push edx
push 0x22c
push 0
push eax
call fcn.00443680
mov eax, dword [esp + 0x70]
add esp, 0x14
mov edi, 0x4d86f4
mov byte [esp + 0x690], 1
test eax, eax
mov dword [esp + 0x4c], edi
je 0x402df9
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x402df9
push esi
lea ecx, [esp + 0x50]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x58]
add esp, 4
inc esi
cmp esi, eax
jl 0x402ddd
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004c7e56
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov byte [esp + 0x690], 0
mov dword [esp + 0x14], edi
je 0x402e40
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x402e40
push esi
lea ecx, [esp + 0x18]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x402e24
mov edx, dword [esp + 0x18]
push edx
call fcn.004c7e56
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x690], 0xffffffff
mov dword [esp + 0x30], edi
je 0x402e8a
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x402e8a
push esi
lea ecx, [esp + 0x34]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x402e6e
mov eax, dword [esp + 0x34]
push eax
jmp 0x403275
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402fb1
cmp eax, 1
jne 0x402eb5
mov eax, dword [0x4fb828]
test eax, eax
je 0x402eb5
mov eax, 1
jmp 0x402eb7
xor eax, eax
push eax
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
mov ecx, dword [0x4fbe1c]
call fcn.00439aa0
test eax, eax
je 0x402fc2
mov eax, dword [esp + 0x5c]
mov edi, 0x4d86f4
test eax, eax
mov byte [esp + 0x690], 1
mov dword [esp + 0x4c], edi
je 0x402f13
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x402f13
push esi
lea ecx, [esp + 0x50]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x58]
add esp, 4
inc esi
cmp esi, eax
jl 0x402ef7
mov edx, dword [esp + 0x50]
push edx
call fcn.004c7e56
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov byte [esp + 0x690], 0
mov dword [esp + 0x14], edi
je 0x402f5a
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x402f5a
push esi
lea ecx, [esp + 0x18]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x402f3e
mov eax, dword [esp + 0x18]
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x690], 0xffffffff
mov dword [esp + 0x30], edi
je 0x4030e8
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x4030e8
push esi
lea ecx, [esp + 0x34]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x402f90
jmp 0x4030e8
mov al, byte [0x4fb979]
test al, al
jne 0x403001
test ecx, ecx
jne 0x4030ff
mov edi, dword [esp + 0x698]
push edi
call dword [sym.imp.kernel32.dll_lstrlen]
add eax, 0x50
push eax
call fcn.004c7e90
mov edx, dword [0x4fbe20]
add esp, 4
mov esi, eax
push edi
push 0x1fe
push edx
push esi
call fcn.00444d00
mov eax, dword [0x4ee054]
add esp, 0x10
push 0x30
push eax
jmp 0x403180
test ecx, ecx
je 0x403018
jle 0x40300f
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
jmp 0x403011
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x5c]
mov edi, 0x4d86f4
test eax, eax
mov byte [esp + 0x690], 1
mov dword [esp + 0x4c], edi
je 0x403057
mov eax, dword [esp + 0x54]
xor esi, esi
test eax, eax
jle 0x403057
push esi
lea ecx, [esp + 0x50]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x58]
add esp, 4
inc esi
cmp esi, eax
jl 0x40303b
mov edx, dword [esp + 0x50]
push edx
call fcn.004c7e56
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov byte [esp + 0x690], 0
mov dword [esp + 0x14], edi
je 0x40309e
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x40309e
push esi
lea ecx, [esp + 0x18]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x20]
add esp, 4
inc esi
cmp esi, eax
jl 0x403082
mov eax, dword [esp + 0x18]
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
mov dword [esp + 0x690], 0xffffffff
mov dword [esp + 0x30], edi
je 0x4030e8
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x4030e8
push esi
lea ecx, [esp + 0x34]
call fcn.00403b10
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x4030cc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004c7e56
add esp, 4
mov eax, 1
jmp 0x40327f
mov ecx, dword [0x4fbe1c]
push 1
call fcn.0043b340
mov eax, dword [0x4fbe18]
test eax, eax
jne 0x40311f
push 0xa
call fcn.004014e0
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x40312f
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
jmp 0x403131
xor eax, eax
push 0
push 1
push eax
call fcn.00401550
add esp, 0xc
test eax, eax
jne 0x4031cd
mov edi, dword [esp + 0x698]
push edi
call dword [sym.imp.kernel32.dll_lstrlen]
add eax, 0x50
push eax
call fcn.004c7e90
add esp, 4
mov esi, eax
mov eax, dword [0x4fbe20]
push edi
push 0x1fe
push eax
push esi
call fcn.00444d00
mov ecx, dword [0x4ee054]
add esp, 0x10
push 0x30
push ecx
push esi
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push esi
call fcn.004c7e56
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x690], 1
call fcn.00403a50
lea ecx, [esp + 0x14]
mov byte [esp + 0x690], 0
call fcn.00403a50
lea ecx, [esp + 0x30]
mov dword [esp + 0x690], 0xffffffff
call fcn.00403a50
jmp 0x40327d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x690], 1
call fcn.00403a50
lea ecx, [esp + 0x14]
mov byte [esp + 0x690], 0
call fcn.00403a50
lea ecx, [esp + 0x30]
mov dword [esp + 0x690], 0xffffffff
call fcn.00403a50
mov eax, 1
jmp 0x40327f
mov edx, dword [0x4ee054]
mov eax, dword [0x4fbe20]
push ebp
push edx
push 0x22b
push ebp
push eax
call fcn.00443680
mov eax, dword [esp + 0x54]
add esp, 0x14
cmp eax, ebp
mov dword [esp + 0x690], 0xffffffff
mov dword [esp + 0x30], 0x4d86f4
je 0x403270
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, ebp
jle 0x403270
cmp esi, eax
jge 0x40325c
cmp esi, ebp
jl 0x40325c
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + esi*4]
jmp 0x40325e
xor eax, eax
push eax
call fcn.004c7e56
mov eax, dword [esp + 0x3c]
add esp, 4
inc esi
cmp esi, eax
jl 0x40324f
mov edx, dword [esp + 0x34]
push edx
call fcn.004c7e56
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x688]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x684
ret