Function at 0x402db0
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2bc]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x41c
push esi
call edi
push 0x42a
push esi
mov dword [esp + 0x28], eax
call edi
push 0x42e
push esi
mov dword [esp + 0x2c], eax
call edi
push 0x41d
push esi
mov dword [esp + 0x4c], eax
call edi
push 0x41e
push esi
mov dword [esp + 0x44], eax
call edi
push 0x429
push esi
mov dword [esp + 0x48], eax
call edi
push 0x435
push esi
mov dword [esp + 0x38], eax
call edi
push 0x439
push esi
mov dword [esp + 0x40], eax
call edi
push 0x41f
push esi
mov dword [esp + 0x30], eax
call edi
mov ebx, eax
mov dword [esp + 0x2c], ebx
xor eax, eax
jmp 0x402e40
mov cl, byte [eax + 0x263db20]
mov byte [esp + eax + 0x188], cl
add eax, 1
test cl, cl
jne 0x402e40
lea eax, [esp + 0x188]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402e60
mov ecx, dword [str..dll]
mov dx, word [0x582464]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x18], eax
mov esi, eax
jmp 0x402ea4
mov ebx, dword [esp + 0x2c]
cmp esi, 0xffffffff
je 0x403633
lea edx, [esp + 0x74]
push edx
push 0x263db20
lea eax, [esp + 0x190]
push 0x582458
push eax
call fcn.00563254
add esp, 0x10
lea ecx, [esp + 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x402f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18c]
push edx
push str._s:__d_n
call fcn.00409cc0
add esp, 0xc
jmp 0x403610
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PS2EgetLibType
push edi
call esi
push str.PS2EgetLibName
push edi
mov ebx, eax
call esi
push str.PS2EgetLibVersion2
push edi
mov dword [esp + 0x18], eax
call esi
test ebx, ebx
mov esi, eax
mov dword [esp + 0x14], esi
je 0x403610
cmp dword [esp + 0x10], 0
je 0x403610
test esi, esi
je 0x403610
call ebx
test al, 1
mov dword [esp + 0x1c], eax
je 0x403013
push 1
call esi
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
cmp ecx, 6
jne 0x4031a9
mov ecx, eax
movzx edx, al
shr ecx, 0x18
push ecx
movzx eax, ah
push edx
push eax
call dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x198]
push str._s__d._d._d
push ecx
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402fa0
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
lea edx, [esp + 0x78]
push edx
mov esi, eax
push 0x58240c
push esi
call fcn.00563254
mov ecx, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 0x188]
push eax
push 0
push 0x143
push ecx
call ebp
mov edx, dword [esp + 0x20]
push esi
mov ebx, eax
push ebx
push 0x151
push edx
call ebp
push esi
push 0x263d120
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x40300f
push eax
mov eax, dword [esp + 0x24]
push ebx
push 0x14e
push eax
call ebp
mov esi, dword [esp + 0x14]
test byte [esp + 0x1c], 2
je 0x4031d8
push str.PADquery
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 2
mov dword [esp + 0x38], edi
call esi
mov ebx, eax
shr eax, 0x10
and eax, 0xff
cmp eax, 2
jne 0x4031c3
test edi, edi
je 0x4031c3
call edi
test al, 1
je 0x403103
mov edx, ebx
shr edx, 0x18
movzx eax, bl
push edx
movzx ecx, bh
push eax
push ecx
call dword [esp + 0x1c]
push eax
lea edx, [esp + 0x198]
push str._s__d._d._d
push edx
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea esi, [eax + 1]
jmp 0x403090
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403090
sub eax, esi
add eax, 8
push eax
call fcn.00563191
mov esi, eax
lea eax, [esp + 0x78]
push eax
push 0x58240c
push esi
call fcn.00563254
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x188]
push ecx
push 0
push 0x143
push edx
call ebp
push esi
mov edi, eax
mov eax, dword [esp + 0x28]
push edi
push 0x151
push eax
call ebp
push esi
push 0x263d220
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x4030ff
mov ecx, dword [esp + 0x24]
push eax
push edi
push 0x14e
push ecx
call ebp
mov edi, dword [esp + 0x34]
call edi
test al, 2
je 0x4031d8
mov edx, ebx
shr edx, 0x18
movzx eax, bl
push edx
movzx ecx, bh
push eax
push ecx
call dword [esp + 0x1c]
push eax
lea edx, [esp + 0x198]
push str._s__d._d._d
push edx
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403140
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
mov esi, eax
lea eax, [esp + 0x78]
push eax
push 0x58240c
push esi
call fcn.00563254
mov edi, dword [esp + 0x54]
add esp, 0x10
lea ecx, [esp + 0x188]
push ecx
push 0
push 0x143
push edi
call ebp
push esi
mov ebx, eax
push ebx
push 0x151
push edi
call ebp
push esi
push 0x263d320
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x4031d8
push eax
push ebx
push 0x14e
push edi
call ebp
jmp 0x4031d8
push 6
push ecx
lea ecx, [esp + 0x7c]
push ecx
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
jmp 0x403013
push 2
push eax
lea edx, [esp + 0x7c]
push edx
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
test byte [esp + 0x1c], 4
je 0x4032ae
push 4
call dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
cmp ecx, 5
jne 0x403299
mov ecx, eax
movzx edx, al
shr ecx, 0x18
push ecx
movzx eax, ah
push edx
push eax
call dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x198]
push str._s__d._d._d
push ecx
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403230
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
lea edx, [esp + 0x78]
push edx
mov esi, eax
push 0x58240c
push esi
call fcn.00563254
mov edi, dword [esp + 0x4c]
add esp, 0x10
lea eax, [esp + 0x188]
push eax
push 0
push 0x143
push edi
call ebp
push esi
mov ebx, eax
push ebx
push 0x151
push edi
call ebp
push esi
push 0x263d420
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x4032ae
push eax
push ebx
push 0x14e
push edi
call ebp
jmp 0x4032ae
push 5
push ecx
lea ecx, [esp + 0x7c]
push ecx
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
test byte [esp + 0x1c], 8
je 0x403383
push 8
call dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
cmp ecx, 5
jne 0x40336e
mov edx, eax
shr edx, 0x18
push edx
movzx ecx, al
movzx edx, ah
push ecx
push edx
call dword [esp + 0x1c]
push eax
lea eax, [esp + 0x198]
push str._s__d._d._d
push eax
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403305
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
push 0x58240c
push esi
call fcn.00563254
mov edi, dword [esp + 0x50]
add esp, 0x10
lea edx, [esp + 0x188]
push edx
push 0
push 0x143
push edi
call ebp
push esi
mov ebx, eax
push ebx
push 0x151
push edi
call ebp
push esi
push 0x263d520
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x403383
push eax
push ebx
push 0x14e
push edi
call ebp
jmp 0x403383
push 5
push ecx
lea eax, [esp + 0x7c]
push eax
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
test byte [esp + 0x1c], 0x10
je 0x40345e
push 0x10
call dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
cmp ecx, 3
jne 0x403449
mov ecx, eax
movzx edx, al
shr ecx, 0x18
push ecx
movzx eax, ah
push edx
push eax
call dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x198]
push str._s__d._d._d
push ecx
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4033e0
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
lea edx, [esp + 0x78]
push edx
mov esi, eax
push 0x58240c
push esi
call fcn.00563254
mov edi, dword [esp + 0x40]
add esp, 0x10
lea eax, [esp + 0x188]
push eax
push 0
push 0x143
push edi
call ebp
push esi
mov ebx, eax
push ebx
push 0x151
push edi
call ebp
push esi
push 0x263d620
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x40345e
push eax
push ebx
push 0x14e
push edi
call ebp
jmp 0x40345e
push 3
push ecx
lea ecx, [esp + 0x7c]
push ecx
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
test byte [esp + 0x1c], 0x20
je 0x403533
push 0x20
call dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
cmp ecx, 3
jne 0x40351e
mov edx, eax
shr edx, 0x18
push edx
movzx ecx, al
movzx edx, ah
push ecx
push edx
call dword [esp + 0x1c]
push eax
lea eax, [esp + 0x198]
push str._s__d._d._d
push eax
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4034b5
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
push 0x58240c
push esi
call fcn.00563254
mov edi, dword [esp + 0x48]
add esp, 0x10
lea edx, [esp + 0x188]
push edx
push 0
push 0x143
push edi
call ebp
push esi
mov ebx, eax
push ebx
push 0x151
push edi
call ebp
push esi
push 0x263d720
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x403533
push eax
push ebx
push 0x14e
push edi
call ebp
jmp 0x403533
push 3
push ecx
lea eax, [esp + 0x7c]
push eax
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
test byte [esp + 0x1c], 0x40
je 0x403610
push 0x40
call dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
cmp ecx, 2
jne 0x4035fb
mov ecx, eax
movzx edx, al
shr ecx, 0x18
push ecx
movzx eax, ah
push edx
push eax
call dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x198]
push str._s__d._d._d
push ecx
call fcn.00563254
lea eax, [esp + 0x8c]
add esp, 0x18
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403590
sub eax, ecx
add eax, 8
push eax
call fcn.00563191
lea edx, [esp + 0x78]
push edx
mov esi, eax
push 0x58240c
push esi
call fcn.00563254
mov edi, dword [esp + 0x38]
add esp, 0x10
lea eax, [esp + 0x188]
push eax
push 0
push 0x143
push edi
call ebp
push esi
mov ebx, eax
push ebx
push 0x151
push edi
call ebp
push esi
push 0x263d820
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x403610
push eax
push ebx
push 0x14e
mov ecx, edi
push ecx
call ebp
jmp 0x403610
push 2
push ecx
lea edx, [esp + 0x7c]
push edx
push str.Plugin__s:_Version__x____x_n
call fcn.00409cc0
add esp, 0x10
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402ea0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x2c]
xor eax, eax
jmp 0x403640
mov cl, byte [eax + 0x263dc20]
mov byte [esp + eax + 0x188], cl
add eax, 1
test cl, cl
jne 0x403640
lea edi, [esp + 0x188]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403660
mov cx, word [0x5823dc]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18c]
push eax
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
jmp 0x403690
cmp dword [esp + 0x18], 0xffffffff
je 0x40378a
mov edi, 0x5823d8
lea esi, [esp + 0x74]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403767
mov edi, 0x5823d4
lea esi, [esp + 0x74]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403767
cmp dword [esp + 0x68], 0x400000
ja 0x403767
lea ecx, [esp + 0x288]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.00472520
add esp, 8
test eax, eax
je 0x403767
lea eax, [esp + 0x74]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403700
sub eax, edx
add eax, 8
push eax
call fcn.00563191
mov esi, eax
lea eax, [esp + 0x78]
push eax
push 0x58240c
push esi
call fcn.00563254
add esp, 0x10
lea ecx, [esp + 0x288]
push ecx
push 0
push 0x143
push ebx
call ebp
push esi
mov edi, eax
push edi
push 0x151
push ebx
call ebp
lea edx, [esp + 0x74]
push edx
push 0x263d020
call fcn.0057dcf8
add esp, 8
test eax, eax
jne 0x403767
push eax
push edi
push 0x14e
push ebx
call ebp
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403690
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4037ab
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x24]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4037cc
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x44]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4037ed
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x3c]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40380e
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x40]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40382f
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x30]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x403850
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x38]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x403871
push 0
push 0
push 0x14e
push esi
call ebp
mov esi, dword [esp + 0x28]
push 0
push 0
push 0x147
push esi
call ebp
cmp eax, 0xffffffff
jne 0x403892
push 0
push 0
push 0x14e
push esi
call ebp
push 0
push 0
push 0x147
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x4038af
push 0
push 0
push 0x14e
push ebx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2ac
ret