Function at 0x4525d0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x50f3ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e0
push ebx
push ebp
mov ebp, edx
mov dword [esp + 0x18], ecx
push esi
push edi
mov ecx, ebp
call fcn.0048a0b0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2b0]
test ecx, ecx
je 0x452668
lea edx, [esp + 0x2b0]
push 0x5c
push edx
call fcn.00501170
mov esi, eax
lea eax, [esp + 0x2b8]
push 0x2f
push eax
call fcn.00501170
add esp, 0x10
cmp eax, esi
jbe 0x452656
mov esi, eax
test esi, esi
je 0x45265f
inc esi
mov eax, esi
jmp 0x45266d
lea eax, [esp + 0x2b0]
jmp 0x45266d
mov eax, str.In_Path_Name_Null_
xor edi, edi
mov ecx, ebp
mov byte [eax], 0
mov dword [esp + 0x30], edi
call fcn.0044e640
test eax, eax
jbe 0x452a82
lea ecx, [esp + 0x2c]
call fcn.0046e990
lea ecx, [esp + 0x18]
mov dword [esp + 0x4f8], 0
call fcn.0046e990
push edi
mov ecx, ebp
mov byte [esp + 0x4fc], 1
call fcn.0044e650
mov esi, eax
test esi, esi
je 0x4526bd
cmp byte [esi], 0
jne 0x4526c2
mov esi, 0x531b94
lea ecx, [esp + 0x24]
call fcn.0046e990
mov ecx, ebp
mov byte [esp + 0x4f8], 2
call fcn.0048a0c0
lea ecx, [esp + 0x24]
push eax
push 0x531b90
push ecx
call fcn.00470090
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0046e990
push esi
lea edx, [esp + 0x20]
push 0x52de74
push edx
mov byte [esp + 0x504], 3
call fcn.00470090
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00470660
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00470660
mov ecx, ebp
push eax
push esi
call fcn.0048a0b0
lea ecx, [esp + 0x20]
push eax
call fcn.0046fa50
lea eax, [esp + 0x2c]
xor edx, edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0046fc50
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00470660
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x452a20
mov esi, dword [esp + 0x70]
mov ecx, ebp
and esi, 0x10
call fcn.0044e660
dec eax
neg eax
sbb eax, eax
xor edx, edx
inc eax
cmp esi, 0x10
sete dl
cmp edx, eax
jne 0x452a04
cmp byte [esp + 0x9c], 0x2e
je 0x452a04
mov eax, dword [esp + 0x504]
test eax, eax
je 0x4528d8
test esi, esi
je 0x4528d8
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
lea esi, [esp + 0x54]
lea edi, [ebp + 0x18]
mov ebx, 5
push edi
mov ecx, esi
call fcn.0046eaf0
add esi, 4
add edi, 4
dec ebx
jne 0x4527eb
lea ecx, [esp + 0x14]
mov byte [esp + 0x4f8], 4
call fcn.0046e990
lea eax, [esp + 0x9c]
mov ecx, ebp
push eax
mov byte [esp + 0x4fc], 5
call fcn.0048a0b0
lea ecx, [esp + 0x18]
push eax
call fcn.0046f1c0
lea ecx, [esp + 0x14]
call fcn.00470660
lea ecx, [esp + 0x3c]
push eax
call fcn.0044e630
mov ecx, dword [esp + 0x504]
push ecx
lea ecx, [esp + 0x18]
call fcn.00470660
lea ecx, [esp + 0x40]
push eax
call fcn.0044e580
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x68]
push 0
push 0
push 0
mov dword [esp + 0x74], 0x51782c
mov dword [esp + 0x78], 0
call fcn.004525d0
mov byte [esp + 0x4f8], 4
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x4528b8
call fcn.0046ebb0
lea edx, [esp + 0x54]
mov byte [esp + 0x4f8], 3
push fcn.0046ebb0
push 5
push 4
push edx
call fcn.005004a4
jmp 0x452a04
call fcn.0046ebb0
lea eax, [esp + 0x54]
mov byte [esp + 0x4f8], 3
push fcn.0046ebb0
push 5
push 4
push eax
call fcn.005004a4
lea ecx, [esp + 0x9c]
push 0x7e
push ecx
call fcn.005011b0
add esp, 8
test eax, eax
jne 0x452d2b
cmp dword [esp + 0x500], 1
jne 0x45294c
lea edx, [esp + 0x9c]
push 0x2e
push edx
call fcn.00501170
mov edx, eax
add esp, 8
test edx, edx
jne 0x45292a
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x9c]
mov edi, 0x5413c8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x88]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ecx, ebp
call fcn.00488310
test eax, eax
jne 0x4529e1
mov ecx, dword [esp + 0x508]
lea edi, [esp + ecx + 0x2b0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x5cf3d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x5cf3d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, edx
mov edx, dword [esp + 0x90]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push edx
push 0x5cf3d0
jmp 0x4529fb
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x90]
push eax
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
mov ecx, dword [esp + 0x30]
call fcn.0044e2d0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x70]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x45276c
mov edi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4f8], 2
call fcn.0046ebb0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4f8], 1
call fcn.0046ebb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4f8], 0
call fcn.0046ebb0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4f8], 0xffffffff
call fcn.0046ebb0
inc edi
mov ecx, ebp
mov dword [esp + 0x30], edi
call fcn.0044e640
cmp edi, eax
jb 0x452685
mov ecx, ebp
call fcn.0044e670
cmp eax, 1
je 0x452a9d
mov ecx, ebp
call fcn.0044e670
test eax, eax
jne 0x452d10
mov ecx, ebp
mov byte [esp + 0x13], 0
call fcn.0044e660
test eax, eax
jne 0x452ad9
mov ecx, ebp
call fcn.0044e640
cmp eax, 1
jne 0x452ad9
push 0x531b8c
push 0
mov ecx, ebp
call fcn.0044e650
push eax
call fcn.0050d670
add esp, 8
test eax, eax
jne 0x452ad9
mov byte [esp + 0x13], 1
lea edi, [esp + 0x2b0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x531b88
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x3b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x452d09
mov ecx, ebp
mov bl, 1
call fcn.0044e670
cmp eax, 1
jne 0x452b74
cmp byte [esp + 0x3dc], 0x2d
jne 0x452b74
xor bl, bl
mov al, byte [esp + 0x13]
test al, al
je 0x452b97
lea edx, [esp + 0x3dc]
push str.cache
push edx
call fcn.0050d670
add esp, 8
test eax, eax
jne 0x452b97
xor bl, bl
test byte [esp + 0x3b0], 0x10
je 0x452cf2
test bl, bl
je 0x452cf2
cmp byte [esp + 0x3dc], 0x2e
je 0x452cf2
or ecx, 0xffffffff
lea edi, [esp + 0x2b0]
xor eax, eax
lea edx, [esp + 0x1b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1b0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3dc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1b0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x531a90
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
mov edx, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
lea esi, [esp + 0x54]
lea edi, [ebp + 0x18]
mov ebx, 5
push edi
mov ecx, esi
call fcn.0046eaf0
add esi, 4
add edi, 4
dec ebx
jne 0x452c7e
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x4fc], 6
call fcn.0044e630
mov ecx, dword [esp + 0x508]
mov edx, dword [esp + 0x504]
mov eax, dword [esp + 0x500]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x48]
call fcn.004525d0
lea ecx, [esp + 0x54]
mov dword [esp + 0x4f8], 0xffffffff
push fcn.0046ebb0
push 5
push 4
push ecx
call fcn.005004a4
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x3b0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x452b5a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x4f0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4ec
ret 0xc
lea edx, [esp + 0x9c]
mov ecx, 0x5cf4d8
push edx
call fcn.00470660
push eax
lea eax, [esp + 0x1b8]
push eax
call fcn.00500f16
add esp, 0xc
mov ecx, 0x5cf4d0
lea esi, [esp + 0x1b0]
call fcn.00470660
mov ecx, eax
mov edx, esi
call fcn.00465a30
push 0xffffffffffffffff
call fcn.005009bb
nop
mov eax, dword [0x5cf4e4]
push esi
test eax, eax
jne 0x452dbe
mov ecx, 0x48
call fcn.00488280
mov esi, eax
test esi, esi
je 0x452db9
push 0x452f30
push 0x452de0
push 0x452dc0
push 0
push 0x2c
call fcn.004bbd30
mov ecx, esi
push eax
push 0x3f800000
push str.CFishAI
push 0x5cf4e4
call fcn.004431b0
mov eax, dword [0x5cf4e4]
pop esi
ret