Function at 0x401d60
Capabilities:
Delete file
Get common file path
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d507
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x294], edx
lea ecx, [eax + 3]
mov edx, eax
shl edx, 4
mov esi, ecx
add edx, eax
lea eax, [ebx + edx*4]
shl esi, 4
add esi, ecx
mov ecx, dword [ebx + esi*4]
mov dword [ebp - 0x29c], eax
add eax, 0x90
push eax
lea esi, [ebp - 0x204]
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x2ac], eax
call fcn.00401780
push 7
push 0x4310fc
mov eax, esi
push eax
xor eax, eax
mov byte [ebp - 4], 1
call fcn.00403f90
mov ecx, dword [ebp - 0x1f4]
push ecx
mov ecx, eax
lea esi, [ebp - 0x258]
lea edx, [ebp - 0x204]
call fcn.004011c0
mov edi, eax
lea esi, [ebp - 0x204]
mov byte [ebp - 4], 2
call fcn.004011f0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x244], 0x10
jb 0x401e3d
mov edx, dword [ebp - 0x258]
push edx
call fcn.00416084
add esp, 4
xor edi, edi
push edi
mov esi, 0xf
push 0x4310a7
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1bc], edi
mov byte [ebp - 0x1cc], 0
call fcn.00401360
mov byte [ebp - 4], 3
push edi
push 0x4310a7
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x1a0], edi
mov byte [ebp - 0x1b0], 0
call fcn.00401360
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x2a0], esp
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x204]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push eax
mov byte [ecx], 0
call fcn.00401260
call fcn.00401cf0
test al, al
je 0x402118
push 0x7f
lea ecx, [ebp - 0x8f]
push edi
push ecx
mov byte [ebp - 0x90], 0
call fcn.0041f350
add esp, 0xc
test byte [0x43a984], 1
jne 0x401f07
or dword [0x43a984], 1
mov byte [ebp - 4], 5
call fcn.0040e690
push 0x42da70
call fcn.0041679c
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [0x4e0a60]
push edx
push 0x4310d0
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.004162c5
add esp, 0x10
test byte [0x43a984], 1
jne 0x401f51
or dword [0x43a984], 1
mov byte [ebp - 4], 6
call fcn.0040e690
push 0x42da70
call fcn.0041679c
add esp, 4
mov byte [ebp - 4], 4
push 0x43a988
lea esi, [ebp - 0x274]
call fcn.004017e0
push eax
mov eax, str.MtGame
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 7
call fcn.004043d0
push eax
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 8
call fcn.004043d0
push eax
mov eax, str._npMtGamePlugin.dll
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 9
call fcn.004043d0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x1cc]
mov byte [ebp - 4], 0xa
call fcn.004011f0
cmp dword [ebp - 0x228], 0x10
jb 0x401fcd
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00416084
add esp, 4
mov esi, 0x10
mov edi, 0xf
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
cmp dword [ebp - 0x27c], esi
jb 0x402005
mov edx, dword [ebp - 0x290]
push edx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x280], 0
mov byte [ebp - 0x290], 0
cmp dword [ebp - 0x244], esi
jb 0x402033
mov eax, dword [ebp - 0x258]
push eax
call fcn.00416084
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x248], 0
mov byte [ebp - 0x258], 0
cmp dword [ebp - 0x260], esi
jb 0x402065
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.00416084
add esp, 4
test byte [0x43a984], 1
jne 0x40208f
or dword [0x43a984], 1
mov byte [ebp - 4], 0xb
call fcn.0040e690
push 0x42da70
call fcn.0041679c
add esp, 4
mov byte [ebp - 4], 4
push 0x43a988
lea esi, [ebp - 0x274]
call fcn.004017e0
push eax
mov eax, str._temp.tmp
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xc
call fcn.004043d0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x1b0]
mov byte [ebp - 4], 0xd
call fcn.004011f0
cmp dword [ebp - 0x244], 0x10
jb 0x4020e0
mov edx, dword [ebp - 0x258]
push edx
call fcn.00416084
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x260], 0x10
mov dword [ebp - 0x244], 0xf
mov dword [ebp - 0x248], 0
mov byte [ebp - 0x258], 0
jb 0x4021a4
mov eax, dword [ebp - 0x274]
push eax
jmp 0x40219c
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x274]
push eax
call fcn.00404420
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x1cc]
mov byte [ebp - 4], 0xe
call fcn.004011f0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x260], 0x10
jb 0x40215f
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.00416084
add esp, 4
push str._temp.tmp
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x274]
push eax
call fcn.004044e0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x1b0]
mov byte [ebp - 4], 0xf
call fcn.004011f0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x260], 0x10
jb 0x4021a4
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.00416084
add esp, 4
mov edx, dword [ebp - 0x2ac]
push edx
lea esi, [ebp - 0x220]
call fcn.00401780
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x2a0], esp
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [ebp - 0x220]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.00401260
lea ecx, [ebp - 0x1e8]
call fcn.00401c40
add esp, 0x1c
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x1d8], esi
jbe 0x402219
push 4
mov eax, str..dat
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x294], 1
call fcn.004039a0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x1e8]
push ecx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], esi
mov byte [ebp - 0x23c], 0
call fcn.00401260
mov eax, dword [ebp - 0x23c]
mov edi, 0x10
cmp dword [ebp - 0x228], edi
jae 0x40225e
lea eax, [ebp - 0x23c]
push 0x4310a4
push eax
call fcn.0041606d
add esp, 8
cmp eax, esi
jne 0x40244c
cmp dword [ebp - 0x228], edi
jb 0x40228b
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00416084
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a0], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x1cc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push edx
mov byte [ecx], 0
call fcn.00401260
call fcn.00403370
cmp eax, esi
je 0x4024ac
mov eax, dword [ebp - 0x1cc]
cmp dword [ebp - 0x1b8], edi
jae 0x4022d3
lea eax, [ebp - 0x1cc]
push 0x4310a4
push eax
call fcn.0041606d
add esp, 8
cmp eax, esi
je 0x402328
push eax
call fcn.0041614d
mov eax, dword [ebp - 0x1cc]
add esp, 4
cmp dword [ebp - 0x1b8], edi
jae 0x402302
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x1cc]
and eax, 0xfffffffe
cmp dword [ebp - 0x1b8], edi
jae 0x402320
lea ecx, [ebp - 0x1cc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x1cc]
cmp dword [ebp - 0x1b8], edi
jae 0x40233c
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x294]
push eax
mov ecx, 0x1041
call fcn.0040af90
test eax, eax
jne 0x4028b6
cmp dword [ebp - 0x1d4], edi
jb 0x40236d
mov ecx, dword [ebp - 0x1e8]
push ecx
call fcn.00416084
add esp, 4
mov ebx, 0xf
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 0x1e8], 0
cmp dword [ebp - 0x20c], edi
jb 0x40239c
mov edx, dword [ebp - 0x220]
push edx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x220], 0
cmp dword [ebp - 0x19c], edi
jb 0x4023c6
mov eax, dword [ebp - 0x1b0]
push eax
call fcn.00416084
add esp, 4
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x1a0], esi
mov byte [ebp - 0x1b0], 0
cmp dword [ebp - 0x1b8], edi
jb 0x4023f0
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1bc], esi
mov byte [ebp - 0x1cc], 0
cmp dword [ebp - 0x1f0], edi
jb 0x40241a
mov edx, dword [ebp - 0x204]
push edx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x1f4], esi
mov byte [ebp - 0x204], 0
cmp dword [ebp + 0x24], edi
jb 0x402594
mov eax, dword [ebp + 0x10]
push eax
call fcn.00416084
add esp, 4
mov eax, 0x3ed
jmp 0x402b50
push eax
call fcn.0041614d
add esp, 4
cmp dword [ebp - 0x228], edi
jb 0x40246c
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00416084
add esp, 4
cmp dword [ebp - 0x294], esi
je 0x40228b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a0], esp
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x1b0]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push edx
mov byte [ecx], 0
call fcn.00401260
call fcn.00403370
cmp eax, esi
jne 0x40259e
cmp dword [ebp - 0x1d4], edi
jb 0x4024c3
mov eax, dword [ebp - 0x1e8]
push eax
call fcn.00416084
add esp, 4
mov ebx, 0xf
mov byte [ebp - 0x1e8], 0
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x1d4], ebx
cmp dword [ebp - 0x20c], edi
jb 0x4024f2
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00416084
add esp, 4
mov byte [ebp - 0x220], 0
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], ebx
cmp dword [ebp - 0x19c], edi
jb 0x40251c
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.00416084
add esp, 4
mov byte [ebp - 0x1b0], 0
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x19c], ebx
cmp dword [ebp - 0x1b8], edi
jb 0x402546
mov eax, dword [ebp - 0x1cc]
push eax
call fcn.00416084
add esp, 4
mov byte [ebp - 0x1cc], 0
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1b8], ebx
cmp dword [ebp - 0x1f0], edi
jb 0x402570
mov ecx, dword [ebp - 0x204]
push ecx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x1f4], esi
mov byte [ebp - 0x204], 0
cmp dword [ebp + 0x24], edi
jb 0x402594
mov edx, dword [ebp + 0x10]
push edx
call fcn.00416084
add esp, 4
mov eax, 0x3ed
jmp 0x402b50
mov eax, dword [ebp - 0x1b0]
cmp dword [ebp - 0x19c], edi
jae 0x4025b2
lea eax, [ebp - 0x1b0]
push 0x4310a4
push eax
call fcn.0041606d
add esp, 8
cmp eax, esi
je 0x402607
push eax
call fcn.0041614d
mov eax, dword [ebp - 0x1b0]
add esp, 4
cmp dword [ebp - 0x19c], edi
jae 0x4025e1
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x1b0]
and eax, 0xfffffffe
cmp dword [ebp - 0x19c], edi
jae 0x4025ff
lea ecx, [ebp - 0x1b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x1b0]
cmp dword [ebp - 0x19c], edi
jae 0x40261b
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x294]
push eax
mov ecx, 0x1041
call fcn.0040af90
test eax, eax
jne 0x40267a
lea ecx, [ebp - 0x1e8]
call fcn.00401190
lea ecx, [ebp - 0x220]
call fcn.00401190
lea ecx, [ebp - 0x1b0]
call fcn.00401190
lea ecx, [ebp - 0x1cc]
call fcn.00401190
lea ecx, [ebp - 0x204]
call fcn.00401190
lea ecx, [ebp + 0x10]
call fcn.00401190
mov eax, 0x3ed
jmp 0x402b50
mov ecx, dword [ebp - 0x29c]
mov eax, dword [ecx + 0xd0]
cdq
push edx
mov edx, dword [ebp - 0x2a8]
push eax
push edx
call fcn.0040b100
lea eax, [ebx + 0xa70e4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x298]
mov dword [ebx + 0xa80e4], eax
lea eax, [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x14], 0x1000
call fcn.00407060
cmp dword [ebx + 8], 0
jne 0x40270c
lea eax, [ebx + 0xa60e4]
mov dword [ebx + 4], eax
test eax, eax
je 0x4026ff
mov edx, dword [ebp - 0x2a8]
push 0
lea ecx, [ebp - 0x29c]
push ecx
push 0x1000
push eax
mov eax, dword [edx]
push eax
mov dword [ebp - 0x29c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x29c]
jmp 0x402701
xor eax, eax
mov dword [ebx + 8], eax
test eax, eax
je 0x402794
push 0
lea eax, [ebx + 4]
call fcn.00407100
mov esi, eax
mov eax, 0x1000
add esp, 4
sub eax, dword [ebx + 0x14]
je 0x402758
mov ecx, dword [ebp - 0x294]
cmp ecx, 0xffffffff
je 0x402748
push 0
lea edx, [ebp - 0x2a0]
push edx
push eax
lea eax, [ebx + 0xa70e4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebx + 0xa70e4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0x1000
test esi, esi
jne 0x402794
mov edi, dword [ebx + 0xa60dc]
test edi, edi
je 0x4026bc
mov esi, ebx
call fcn.00403330
mov dword [ebp - 0x298], eax
mov eax, dword [ebx + 0xa60e0]
push eax
lea ecx, [ebp - 0x298]
push ecx
push 0x3ea
call edi
add esp, 0xc
jmp 0x4026bc
push 4
lea eax, [ebx + 4]
call fcn.00407100
mov esi, eax
mov eax, 0x1000
add esp, 4
sub eax, dword [ebx + 0x14]
je 0x4027e8
cmp dword [ebp - 0x294], 0xffffffff
je 0x4027d4
push 0
lea edx, [ebp - 0x2a0]
push edx
push eax
lea eax, [ebx + 0xa70e4]
push eax
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebx + 0xa70e4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0x1000
test esi, esi
je 0x402794
lea eax, [ebx + 4]
call fcn.00407010
mov eax, dword [ebp - 0x294]
cmp eax, 0xffffffff
je 0x402802
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea ecx, [ebp - 0x194]
push 0
push ecx
call fcn.0041f350
add esp, 0xc
lea edx, [ebp - 0x194]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 0x10]
mov edi, 0x10
cmp dword [ebp + 0x24], edi
jae 0x40283a
lea eax, [ebp + 0x10]
push eax
call fcn.004169a1
mov eax, dword [ebp - 0x2ac]
add esp, 4
push eax
lea esi, [ebp - 0x274]
call fcn.00401780
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], edi
jb 0x402860
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1e8]
cmp dword [ebp - 0x1d4], edi
jae 0x402874
lea ecx, [ebp - 0x1e8]
push ecx
mov ecx, eax
call fcn.00412ef0
add esp, 4
test eax, eax
lea ecx, [ebp - 0x274]
sete bl
call fcn.00401190
test bl, bl
jne 0x402631
push str.temp.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x194]
push ecx
call fcn.004169a1
add esp, 4
jmp 0x402a5c
mov ecx, dword [ebp - 0x29c]
mov eax, dword [ecx + 0xd0]
cdq
push esi
mov dword [ebp - 0x2a0], edx
lea edx, [ebp - 0x2a0]
push edx
push eax
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x298]
lea eax, [ebx + 0xa70e4]
mov dword [ebx + 0x10], eax
lea eax, [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x14], 0x1000
mov dword [ebx + 0xa80e4], edx
call fcn.00407060
cmp dword [ebx + 8], 0
jne 0x402960
lea eax, [ebx + 0xa60e4]
lea esi, [ebx + 4]
mov dword [esi], eax
test eax, eax
je 0x402953
mov edx, dword [ebp - 0x2a8]
push 0
lea ecx, [ebp - 0x298]
push ecx
push 0x1000
push eax
mov eax, dword [edx]
push eax
mov dword [ebp - 0x298], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x298]
jmp 0x402955
xor eax, eax
mov dword [ebx + 8], eax
test eax, eax
je 0x4029f0
lea esi, [ebx + 4]
push 0
mov eax, esi
call fcn.00407100
mov edi, eax
mov eax, 0x1000
add esp, 4
sub eax, dword [ebx + 0x14]
je 0x4029b2
cmp dword [ebp - 0x294], 0xffffffff
je 0x4029a2
mov edx, dword [ebp - 0x294]
push 0
lea ecx, [ebp - 0x2a0]
push ecx
push eax
lea eax, [ebx + 0xa70e4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebx + 0xa70e4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0x1000
test edi, edi
jne 0x4029f0
mov edi, dword [ebx + 0xa60dc]
test edi, edi
je 0x40290e
mov esi, ebx
call fcn.00403330
mov dword [ebp - 0x298], eax
mov eax, dword [ebx + 0xa60e0]
push eax
lea ecx, [ebp - 0x298]
push ecx
push 0x3ea
call edi
add esp, 0xc
jmp 0x40290e
push 4
mov eax, esi
call fcn.00407100
mov edi, eax
mov eax, 0x1000
add esp, 4
sub eax, dword [ebx + 0x14]
je 0x402a43
cmp dword [ebp - 0x294], 0xffffffff
je 0x402a2f
push 0
lea edx, [ebp - 0x2a0]
push edx
push eax
lea eax, [ebx + 0xa70e4]
push eax
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebx + 0xa70e4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0x1000
test edi, edi
je 0x4029f0
mov eax, esi
call fcn.00407010
mov eax, dword [ebp - 0x294]
cmp eax, 0xffffffff
je 0x402a5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x1d4], esi
jb 0x402a78
mov ecx, dword [ebp - 0x1e8]
push ecx
call fcn.00416084
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1d8], edi
mov byte [ebp - 0x1e8], 0
cmp dword [ebp - 0x20c], esi
jb 0x402aa9
mov edx, dword [ebp - 0x220]
push edx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x220], 0
cmp dword [ebp - 0x19c], esi
jb 0x402ad3
mov eax, dword [ebp - 0x1b0]
push eax
call fcn.00416084
add esp, 4
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x1a0], edi
mov byte [ebp - 0x1b0], 0
cmp dword [ebp - 0x1b8], esi
jb 0x402afd
mov ecx, dword [ebp - 0x1cc]
push ecx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1bc], edi
mov byte [ebp - 0x1cc], 0
cmp dword [ebp - 0x1f0], esi
jb 0x402b27
mov edx, dword [ebp - 0x204]
push edx
call fcn.00416084
add esp, 4
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 0x1f4], edi
mov byte [ebp - 0x204], 0
cmp dword [ebp + 0x24], esi
jb 0x402b4b
mov eax, dword [ebp + 0x10]
push eax
call fcn.00416084
add esp, 4
mov eax, 0x3ea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret 0x24