Function at 0x40a730
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d896d
mov eax, dword fs:[0]
push eax
mov eax, 0x14d8
call fcn.0068e250
mov eax, dword [0x79a200]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00690e10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00690e10
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0069fbc3
add esp, 0x44
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x40ae55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14d8], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x14d8]
push 0x770958
push eax
call fcn.00407190
add esp, 0x10
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x40ae5f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14bc], eax
mov byte [ebp - 4], 1
lea esi, [eax - 0x10]
mov edi, dword [ebp - 0x14d8]
or ebx, 0xffffffff
lea ecx, [edi - 0x10]
mov dword [ebp - 0x14dc], ecx
cmp ecx, esi
je 0x40a8da
cmp dword [esi + 0xc], 0
jl 0x40a8c5
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40a8c5
push ecx
call fcn.004066d0
add esp, 4
mov dword [ebp - 0x14b8], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a8ba
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14b8]
add eax, 0x10
mov dword [ebp - 0x14bc], eax
jmp 0x40a8da
push dword [edi - 0xc]
lea ecx, [ebp - 0x14bc]
push edi
call fcn.00406bf0
mov eax, dword [ebp - 0x14bc]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40a8ec
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40a902
call fcn.0054592c
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40ae55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14b4], eax
mov eax, str.DNLauncher__Log.txt
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14b4]
test eax, 0xffff0000
jne 0x40a931
movzx eax, ax
push eax
call fcn.00406a60
jmp 0x40a93b
push str.DNLauncher__Log.txt
call fcn.0040bd50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14bc]
mov esi, dword [ebp - 0x14b4]
push dword [esi - 0xc]
push esi
call fcn.0040bc00
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a96f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14bc]
cmp dword [eax - 4], 1
jle 0x40a98f
push dword [eax - 0xc]
lea ecx, [ebp - 0x14bc]
call fcn.00406e20
mov eax, dword [ebp - 0x14bc]
lea ecx, [ebp - 0x14ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14b4], eax
mov dword [ebp - 0x14c8], 0
mov dword [ebp - 0x14c4], 0
mov dword [ebp - 0x14c0], 0
mov byte [ebp - 4], 4
cmp eax, 0xffffffff
je 0x40ab06
nop
test byte [ebp - 0x14ac], 0x10
jne 0x40aaea
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x40ae55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14b0], eax
lea esi, [eax - 0x10]
mov byte [ebp - 4], 5
lea ecx, [edi - 0x10]
cmp ecx, esi
je 0x40aa5a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40aa4b
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40aa4b
push ecx
call fcn.004066d0
add esp, 4
mov dword [ebp - 0x14b8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40aa40
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14b8]
add eax, 0x10
mov dword [ebp - 0x14b0], eax
jmp 0x40aa5a
push dword [edi - 0xc]
lea ecx, [ebp - 0x14b0]
push edi
call fcn.00406bf0
lea ecx, [ebp - 0x1480]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa63
sub ecx, edx
lea eax, [ebp - 0x1480]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14b0]
call fcn.0040bc00
mov ebx, dword [ebp - 0x14c4]
mov esi, dword [ebp - 0x14b0]
cmp ebx, dword [ebp - 0x14c0]
je 0x40aab3
lea eax, [esi - 0x10]
push eax
call fcn.004066d0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [ebp - 0x14c4], 4
jmp 0x40aac6
lea eax, [ebp - 0x14b0]
push eax
push ebx
lea ecx, [ebp - 0x14c8]
call fcn.0040b7f0
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40aae4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14b4]
lea ecx, [ebp - 0x14ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x14b4]
jne 0x40a9d0
push dword [ebp - 0x14b4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x14d4], esi
mov dword [ebp - 0x14d0], ebx
mov dword [ebp - 0x14cc], ebx
mov byte [ebp - 4], 6
xor edx, edx
mov ecx, dword [ebp - 0x14c4]
mov eax, ecx
mov edi, dword [ebp - 0x14c8]
sub eax, edi
sar eax, 2
mov dword [ebp - 0x14b8], edx
mov dword [ebp - 0x14b4], ecx
test eax, eax
jle 0x40ad15
nop word [eax + eax]
mov eax, dword [edi + edx*4]
lea ebx, [edx*4]
sub eax, 0x10
push eax
call fcn.004066d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14b0], esi
mov byte [ebp - 4], 7
cmp dword [esi - 0xc], 0
jge 0x40ab8e
or eax, 0xffffffff
jmp 0x40aba9
push 0x770984
push esi
call fcn.00690168
add esp, 8
test eax, eax
jne 0x40aba5
or eax, 0xffffffff
jmp 0x40aba9
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x14b0]
push eax
push 0
call fcn.0040b430
mov esi, dword [ebp - 0x14b0]
cmp dword [esi - 0xc], 0
jge 0x40abc9
or ecx, 0xffffffff
jmp 0x40abe6
push 0x770984
push esi
call fcn.00690168
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40abe2
or ecx, 0xffffffff
jmp 0x40abe6
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x14b0]
call fcn.0040b430
mov esi, dword [ebp - 0x14b0]
cmp dword [esi - 4], 1
jle 0x40ac18
push dword [esi - 0xc]
lea ecx, [ebp - 0x14b0]
call fcn.00406e20
mov esi, dword [ebp - 0x14b0]
push esi
call fcn.0069b988
mov edi, eax
lea eax, [ebp - 0x14e4]
push eax
call fcn.0069fc83
lea eax, [ebp - 0x14e4]
push eax
lea eax, [ebp - 0x125c]
push eax
call fcn.0069ff7c
push dword [ebp - 0x1250]
mov eax, dword [ebp - 0x1248]
push dword [ebp - 0x124c]
add eax, 0x76c
push eax
push 0x770988
lea eax, [ebp - 0x1238]
push 0x400
push eax
call fcn.0040b6b0
lea eax, [ebp - 0x1238]
push eax
call fcn.0069b988
add esp, 0x2c
cmp edi, eax
jge 0x40acbf
mov eax, dword [ebp - 0x14c8]
mov edi, dword [ebp - 0x14d0]
add eax, ebx
cmp edi, dword [ebp - 0x14cc]
je 0x40acb2
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004066d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [ebp - 0x14d0], 4
jmp 0x40acbf
push eax
push edi
lea ecx, [ebp - 0x14d4]
call fcn.0040b7f0
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40acdb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14c4]
mov eax, ecx
mov edx, dword [ebp - 0x14b8]
mov edi, dword [ebp - 0x14c8]
inc edx
sub eax, edi
mov dword [ebp - 0x14b8], edx
sar eax, 2
mov dword [ebp - 0x14b4], ecx
cmp edx, eax
jl 0x40ab60
mov ebx, dword [ebp - 0x14d0]
mov esi, dword [ebp - 0x14d4]
mov eax, ebx
xor edx, edx
sub eax, esi
mov dword [ebp - 0x14b8], edx
sar eax, 2
test eax, eax
jle 0x40ad66
mov ecx, dword [esi + edx*4]
call fcn.0041ac90
mov ebx, dword [ebp - 0x14d0]
mov eax, ebx
mov edx, dword [ebp - 0x14b8]
mov esi, dword [ebp - 0x14d4]
inc edx
sub eax, esi
mov dword [ebp - 0x14b8], edx
sar eax, 2
cmp edx, eax
jl 0x40ad28
mov ecx, dword [ebp - 0x14c4]
mov edi, dword [ebp - 0x14c8]
mov dword [ebp - 0x14b4], ecx
cmp edi, ecx
je 0x40adaf
nop word [eax + eax]
mov edx, dword [edi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ad90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14b4]
add edi, 4
cmp edi, ecx
jne 0x40ad70
mov eax, dword [ebp - 0x14c8]
mov ebx, dword [ebp - 0x14d0]
mov esi, dword [ebp - 0x14d4]
mov dword [ebp - 0x14c4], eax
cmp esi, ebx
je 0x40ade0
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40adcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, ebx
jne 0x40adb3
mov eax, dword [ebp - 0x14d4]
mov dword [ebp - 0x14d0], eax
lea ecx, [ebp - 0x14d4]
call fcn.0040b050
lea ecx, [ebp - 0x14c8]
call fcn.0040b050
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14bc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ae1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14dc]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ae39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0068d76f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
int3