Function at 0x402830
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x429513
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x431570]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431570]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
mov dword [esp + 0x550], 1
xor eax, eax
xor ebp, ebp
push 0xffffffffffffffff
mov word [esp + 0x70], ax
mov ebx, 7
push ebp
lea eax, [esp + 0x560]
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebp
call fcn.00409fc0
lea ecx, [esp + 0x344]
push ecx
push 0x100
mov byte [esp + 0x558], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
mov eax, 0x42c7fc
lea ecx, [esp + 0x6c]
call fcn.0040bf60
lea edx, [esp + 0x574]
push edx
lea eax, [esp + 0x6c]
push eax
lea edi, [esp + 0x8c]
call fcn.0040dc20
add esp, 8
mov byte [esp + 0x550], 3
mov eax, dword [esp + 0x88]
mov esi, 8
cmp dword [esp + 0x9c], esi
jae 0x402910
lea eax, [esp + 0x88]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x100]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
jne 0x4029d6
cmp dword [esp + 0x9c], esi
jb 0x40294b
mov edx, dword [esp + 0x88]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], ax
cmp dword [esp + 0x80], esi
jb 0x402979
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], dx
cmp dword [esp + 0x570], esi
jb 0x4029a4
mov eax, dword [esp + 0x55c]
push eax
call fcn.00410308
add esp, 4
mov dword [esp + 0x570], ebx
xor ecx, ecx
mov dword [esp + 0x56c], ebp
mov word [esp + 0x55c], cx
cmp dword [esp + 0x58c], esi
jb 0x403202
mov edx, dword [esp + 0x578]
push edx
jmp 0x4031fa
lea eax, [esp + 0xf4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4030ba
lea ecx, [ecx]
test byte [esp + 0xf4], 0x10
lea eax, [esp + 0x120]
je 0x402b2e
mov ecx, 0x42c800
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402a36
cmp dx, bp
je 0x402a32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402a36
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x402a10
xor eax, eax
jmp 0x402a3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x40309d
mov ecx, 0x42c804
lea eax, [esp + 0x120]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402a76
cmp dx, bp
je 0x402a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402a76
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x402a50
xor eax, eax
jmp 0x402a7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x40309d
lea ecx, [esp + 0x68]
push ecx
lea ebx, [esp + 0x124]
lea esi, [esp + 0xc0]
call fcn.0040dcd0
sub esp, 0x18
mov esi, esp
mov bl, 4
mov byte [esp + 0x56c], bl
mov dword [esp + 0x38], esp
mov edi, 7
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebp
push 1
mov eax, 0x42c80c
mov word [esi + 4], dx
call fcn.0040c040
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x588], 5
mov dword [esp + 0x50], esp
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebp
lea eax, [esp + 0xfc]
call fcn.00409fc0
mov byte [esp + 0x588], bl
call fcn.00402830
inc dword [0x437ce8]
add esp, 0x38
mov byte [esp + 0x550], 3
cmp dword [esp + 0xd4], 8
jb 0x40309d
mov ecx, dword [esp + 0xc0]
push ecx
jmp 0x403095
xor edx, edx
mov edi, 7
mov word [esp + 0xa4], dx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402b50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x124]
lea esi, [esp + 0xa4]
call fcn.0040c040
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], ax
mov byte [esp + 0x550], 7
mov ecx, dword [esp + 0xb4]
cmp ecx, 3
jbe 0x402c33
mov ebx, 3
mov esi, ecx
sub esi, ebx
cmp ecx, esi
ja 0x402bb2
call fcn.00410136
mov ebp, dword [esp + 0x60]
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x402bca
lea eax, [esp + 0xa4]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
movzx edi, word [eax + esi*2]
mov eax, ecx
cmp edx, 8
jae 0x402be1
lea eax, [esp + 0x50]
lea esi, [eax + ebp*2]
test esi, esi
je 0x402c09
mov eax, ecx
cmp edx, 8
jae 0x402bf3
lea eax, [esp + 0x50]
cmp eax, esi
ja 0x402c09
mov eax, ecx
cmp edx, 8
jae 0x402c02
lea eax, [esp + 0x50]
lea ecx, [eax + ebp*2]
cmp esi, ecx
jbe 0x402c0e
call fcn.00410d51
push esi
lea eax, [esp + 0x50]
push eax
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.00407ac0
sub ebx, 1
mov ecx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x60]
jne 0x402ba1
xor eax, eax
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], dx
mov byte [esp + 0x550], 8
cmp ecx, 7
jbe 0x402cfd
lea ebx, [eax + 7]
lea ebp, [esp + 0x30]
jmp 0x402c69
mov ecx, dword [esp + 0xb4]
mov esi, ecx
sub esi, ebx
cmp ecx, esi
ja 0x402c7a
call fcn.00410136
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa4]
mov edx, 8
cmp dword [esp + 0xb8], edx
jae 0x402c96
lea ecx, [esp + 0xa4]
cmp dword [esp + 0x48], edx
mov edx, dword [esp + 0x34]
movzx edi, word [ecx + esi*2]
mov ecx, edx
jae 0x402caa
lea ecx, [esp + 0x34]
lea esi, [ecx + eax*2]
test esi, esi
je 0x402cd6
cmp dword [esp + 0x48], 8
mov ecx, edx
jae 0x402cbe
lea ecx, [esp + 0x34]
cmp ecx, esi
ja 0x402cd6
cmp dword [esp + 0x48], 8
mov ecx, edx
jae 0x402ccf
lea ecx, [esp + 0x34]
lea eax, [ecx + eax*2]
cmp esi, eax
jbe 0x402cdb
call fcn.00410d51
push esi
push ebp
push edi
lea ecx, [esp + 0x34]
push ecx
lea eax, [esp + 0x40]
call fcn.00407ac0
sub ebx, 1
mov eax, dword [esp + 0x44]
jne 0x402c62
mov ebp, dword [esp + 0x60]
mov esi, ebp
cmp ebp, 3
jb 0x402d09
mov esi, 3
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x50]
cmp edi, 8
jae 0x402d1a
lea edx, [esp + 0x50]
mov ecx, 0x42c810
test esi, esi
jbe 0x402d48
mov bx, word [edx]
cmp bx, word [ecx]
jne 0x402d38
add edx, 2
add ecx, 2
sub esi, 1
jne 0x402d23
jmp 0x402d48
mov dx, bx
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x402d55
cmp ebp, 3
jb 0x402d5e
xor ecx, ecx
cmp ebp, 3
setne cl
test ecx, ecx
je 0x402dbe
cmp ebp, 3
jae 0x402d62
mov esi, ebp
jmp 0x402d67
mov esi, 3
mov edx, dword [esp + 0x50]
cmp edi, 8
jae 0x402d74
lea edx, [esp + 0x50]
mov ecx, 0x42c818
test esi, esi
jbe 0x402da5
lea ecx, [ecx]
mov di, word [edx]
cmp di, word [ecx]
jne 0x402d95
add edx, 2
add ecx, 2
sub esi, 1
jne 0x402d80
jmp 0x402da5
mov dx, word [edx]
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x402db6
cmp ebp, 3
jb 0x40302c
xor ecx, ecx
cmp ebp, 3
setne cl
test ecx, ecx
jne 0x40302c
mov esi, eax
cmp eax, 7
jb 0x402dca
mov esi, 7
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
mov edx, ebx
cmp edi, 8
jae 0x402ddd
lea edx, [esp + 0x34]
mov ecx, 0x42c820
test esi, esi
jbe 0x402e0b
mov bp, word [edx]
cmp bp, word [ecx]
jne 0x402dfb
add edx, 2
add ecx, 2
sub esi, 1
jne 0x402de6
jmp 0x402e0b
mov dx, word [edx]
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x402e18
cmp eax, 7
jb 0x402e25
xor ecx, ecx
cmp eax, 7
setne cl
test ecx, ecx
je 0x40302c
cmp eax, 7
jae 0x402e29
mov esi, eax
jmp 0x402e2e
mov esi, 7
mov edx, ebx
cmp edi, 8
jae 0x402e39
lea edx, [esp + 0x34]
mov ecx, str..32.dll
test esi, esi
jbe 0x402e67
mov di, word [edx]
cmp di, word [ecx]
jne 0x402e57
add edx, 2
add ecx, 2
sub esi, 1
jne 0x402e42
jmp 0x402e67
mov dx, word [edx]
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x402e74
cmp eax, 7
jb 0x402e7c
xor ecx, ecx
cmp eax, 7
setne cl
test ecx, ecx
je 0x40302c
push str..64.DLL
mov edi, 7
lea ecx, [esp + 0x34]
call fcn.0040eeb0
test eax, eax
je 0x40302c
mov eax, dword [esp + 0x44]
push str..32.DLL
lea ecx, [esp + 0x34]
call fcn.0040eeb0
test eax, eax
je 0x40302c
xor eax, eax
mov word [esp + 0xc0], ax
lea eax, [esp + 0x120]
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ed7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x124]
lea esi, [esp + 0xc0]
call fcn.0040c040
mov ecx, esi
push ecx
mov ebx, 0x437cfc
mov byte [esp + 0x554], 9
call fcn.00408a30
mov eax, 8
mov byte [esp + 0x550], al
cmp dword [esp + 0xd4], eax
jb 0x402f34
mov edx, dword [esp + 0xc0]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0xe0], ax
push eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], 0
call fcn.00409fc0
lea eax, [esp + 0x120]
mov byte [esp + 0x550], 0xa
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402f80
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x124]
lea ecx, [esp + 0xdc]
call fcn.0040bf60
lea ecx, [esp + 0xd8]
push ecx
mov ebx, 0x437d14
call fcn.00408a30
inc dword [0x437cec]
push 0x437938
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x437cf8], 0
je 0x403007
push 0xc
mov eax, str.Collecting
mov esi, 0x4325c4
call fcn.0040c040
push 0
lea edx, [esp + 0xdc]
push edx
or eax, 0xffffffff
call fcn.0040bea0
mov eax, dword [0x437cf8]
push 0
push 0
push 0x8000
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x437938
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0xf0], 8
jb 0x40302c
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.00410308
add esp, 4
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x403044
mov edx, dword [esp + 0x34]
push edx
call fcn.00410308
add esp, 4
xor edi, edi
xor eax, eax
mov ebx, 7
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
cmp dword [esp + 0x64], esi
jb 0x40306d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov byte [esp + 0x550], 3
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov word [esp + 0x50], dx
cmp dword [esp + 0xb8], esi
jb 0x40309d
mov eax, dword [esp + 0xa4]
push eax
call fcn.00410308
add esp, 4
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xf4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ebp, ebp
test eax, eax
jne 0x4029f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
mov esi, 8
je 0x40315a
cmp dword [esp + 0x9c], esi
jb 0x4030f0
mov edx, dword [esp + 0x88]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], ax
cmp dword [esp + 0x80], esi
jb 0x403123
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], dx
cmp dword [esp + 0x570], esi
jb 0x40314e
mov eax, dword [esp + 0x55c]
push eax
call fcn.00410308
add esp, 4
mov dword [esp + 0x570], edi
jmp 0x4029ab
cmp dword [esp + 0x9c], esi
jb 0x403173
mov eax, dword [esp + 0x88]
push eax
call fcn.00410308
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], cx
cmp dword [esp + 0x80], esi
jb 0x4031a6
mov edx, dword [esp + 0x6c]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], ax
cmp dword [esp + 0x570], esi
jb 0x4031d1
mov ecx, dword [esp + 0x55c]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov dword [esp + 0x570], edi
mov dword [esp + 0x56c], ebp
mov word [esp + 0x55c], dx
cmp dword [esp + 0x58c], esi
jb 0x403202
mov eax, dword [esp + 0x578]
push eax
call fcn.00410308
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.004102f9
add esp, 0x540
ret