Function at 0x4096c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bf05
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x318], ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x308], eax
xor eax, eax
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x310], ebx
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
cmp esi, eax
je 0x4097ad
mov ecx, esi
call fcn.00401520
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
call fcn.00401520
lea eax, [edi + 0x10]
mov dword [ebp - 0x2e8], eax
mov eax, dword [eax]
test eax, eax
jne 0x4097fa
push str.No_localization_directory_specified
mov ecx, esi
call fcn.00401590
xor bl, bl
lea ecx, [ebp - 0x74]
call fcn.00401520
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042207c
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x10], 0
jne 0x409811
push 2
push 0x46db88
mov ecx, ebx
call fcn.004016e0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov edx, edi
cmp ecx, 8
jb 0x40981d
mov edx, dword [edi]
lea esi, [eax + eax]
cmp word [edx + esi - 2], 0x2f
je 0x409842
mov eax, edi
cmp ecx, 8
jb 0x409831
mov eax, dword [edi]
cmp word [eax + esi - 2], 0x5c
je 0x409842
push 0x2f
mov ecx, edi
call fcn.0040a610
mov edx, ebx
lea ecx, [ebp - 0x8c]
call fcn.0040b6f0
mov ebx, eax
mov byte [ebp - 4], 2
mov ecx, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2e0], 1
mov dword [ebp - 0x300], edi
jb 0x409875
mov ecx, dword [edi]
mov dword [ebp - 0x300], ecx
mov esi, dword [ebp - 0x2e8]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
sub eax, edx
mov dword [ebp - 0x2f0], edx
mov esi, dword [esi]
mov dword [ebp - 0x30c], esi
cmp esi, eax
ja 0x409959
cmp dword [ebx + 0x14], 8
lea eax, [edx + esi]
mov dword [ebx + 0x10], eax
mov edx, ebx
mov dword [ebp - 0x304], ebx
jb 0x4098b5
mov edx, dword [ebx]
mov dword [ebp - 0x304], edx
lea eax, [esi + esi]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x2f0]
add eax, eax
mov dword [ebp - 0x2f0], eax
lea eax, [ecx + esi*2]
cmp eax, edx
jbe 0x4098ed
mov eax, dword [ebp - 0x2f0]
add eax, edx
cmp ecx, eax
ja 0x4098ed
cmp edx, ecx
ja 0x4098e7
xor esi, esi
jmp 0x4098ed
mov esi, edx
sub esi, ecx
sar esi, 1
mov eax, dword [ebp - 0x2f0]
add eax, 2
mov dword [ebp - 0x2e0], esi
push eax
mov eax, dword [ebp - 0x314]
push edx
add eax, edx
push eax
call fcn.00437af0
add esp, 0xc
add esi, esi
push esi
push dword [ebp - 0x300]
push dword [ebp - 0x304]
call fcn.00438db0
mov edx, dword [ebp - 0x30c]
add esp, 0xc
mov ecx, dword [ebp - 0x2e0]
mov eax, edx
sub eax, ecx
add eax, eax
push eax
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x300]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp - 0x304]
add eax, esi
push eax
call fcn.00438db0
add esp, 0xc
jmp 0x409973
push esi
push ecx
push ecx
mov byte [ebp - 0x30c], 0
mov ecx, ebx
push dword [ebp - 0x30c]
push esi
call fcn.0040b220
mov ebx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x2c]
push 0x46db8c
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2e0], 0xb
call fcn.0040a950
add esp, 4
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x2e0], 0xf
jb 0x4099f4
mov eax, dword [eax]
lea ecx, [ebp - 0x2dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409a98
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x2b0], 0x2e
je 0x409a6b
test byte [ebp - 0x2dc], 0x10
jne 0x409a6b
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x48], 7
push eax
call fcn.00401590
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00401220
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00401520
lea eax, [ebp - 0x2dc]
push eax
push esi
call ebx
test eax, eax
jne 0x409a13
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x2ec], eax
cmp eax, dword [ebp - 0x2f8]
je 0x409a98
mov bl, 1
jmp 0x409a9a
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.00401520
lea ecx, [ebp - 0x2c]
call fcn.00401520
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 1
call fcn.00401520
test bl, bl
je 0x409e09
push dword [ebp - 0x310]
lea ecx, [ebp - 0x5c]
call fcn.004039a0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2e4]
cmp dword [eax + 0x10], 0
je 0x409b5c
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040a9d0
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x409aff
mov ecx, dword [eax]
mov ebx, dword [eax + 0x10]
mov esi, dword [ebp - 0x48]
mov eax, esi
mov edx, dword [ebp - 0x4c]
sub eax, edx
cmp ebx, eax
ja 0x409b35
lea eax, [edx + ebx]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
cmp esi, 0x10
jb 0x409b21
mov eax, dword [ebp - 0x5c]
push ebx
lea esi, [eax + edx]
push ecx
push esi
call fcn.00437af0
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x409b4d
push ebx
push ecx
mov byte [ebp - 0x2e4], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x2e4]
push ebx
call fcn.00408970
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.00401680
mov edx, dword [ebp - 0x48]
mov eax, edx
mov ecx, dword [ebp - 0x4c]
sub eax, ecx
cmp eax, 4
jb 0x409b95
lea eax, [ecx + 4]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
cmp edx, 0x10
jb 0x409b7c
mov eax, dword [ebp - 0x5c]
push 4
lea esi, [eax + ecx]
push 0x46db9c
push esi
call fcn.00437af0
add esp, 0xc
mov byte [esi + 4], 0
jmp 0x409bb3
push 4
push 0x46db9c
mov byte [ebp - 0x2e4], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x2e4]
push 4
call fcn.00408970
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x8c]
call fcn.0040b6f0
push dword [ebp - 0x2f8]
mov ebx, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2e4]
push ebx
mov edx, eax
call fcn.0040aba0
add esp, 8
lea ecx, [ebp - 0x8c]
call fcn.00401520
mov esi, dword [ebp - 0x2e4]
cmp esi, dword [ebp - 0x2f8]
jne 0x409c58
mov edx, dword [ebp - 0x310]
lea ecx, [ebp - 0x44]
call fcn.0040b6f0
push str..cfg
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0040a950
add esp, 4
lea ecx, [ebp - 0x2e4]
mov edx, eax
push dword [ebp - 0x2f8]
push ebx
call fcn.0040aba0
add esp, 8
lea ecx, [ebp - 0x8c]
mov esi, dword [eax]
call fcn.00401520
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00401520
cmp esi, dword [ebp - 0x2f8]
jne 0x409c58
mov esi, ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040a660
mov ebx, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebx]
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x2e0], 0x18
call fcn.0040af10
cmp dword [edi + 0x14], 8
jb 0x409c9f
mov edi, dword [edi]
push dword [ebx]
lea ecx, [ebp - 0x44]
push edi
call fcn.0040a810
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x409cb6
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0040a810
lea ecx, [ebp - 0x74]
call fcn.00401520
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 9
call fcn.00401520
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2e8], ecx
jb 0x409d26
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2e8], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jb 0x409d4e
lea ebx, [eax - 3]
lea ebx, [ecx + ebx*2]
mov eax, ebx
sub eax, ecx
sar eax, 1
je 0x409d4e
lea esp, [esp]
cmp word [ecx], 0x2e
je 0x409d8c
add ecx, 2
sub eax, 1
jne 0x409d40
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
call fcn.0040b5f0
mov ecx, dword [ebp - 0x308]
push eax
call fcn.00403900
lea ecx, [ebp - 0x8c]
call fcn.00401680
lea ecx, [ebp - 0x2c]
call fcn.00401520
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401680
jmp 0x409e81
test ecx, ecx
je 0x409d4e
mov edx, str..cfg
mov edi, ecx
mov esi, 4
sub edi, edx
mov edi, edi
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x409e01
add edx, 2
sub esi, 1
jne 0x409da0
sub ecx, dword [ebp - 0x2e8]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x409d4e
push ecx
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a550
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c]
call fcn.0040b5f0
mov ecx, dword [ebp - 0x308]
push eax
call fcn.00403900
lea ecx, [ebp - 0x8c]
call fcn.00401680
lea ecx, [ebp - 0x44]
call fcn.00401520
jmp 0x409d73
add ecx, 2
jmp 0x409d34
push str.en_us.cfg
mov edx, edi
lea ecx, [ebp - 0x8c]
call fcn.0040a880
mov esi, eax
add esp, 4
lea eax, [ebp - 0x74]
cmp eax, esi
je 0x409e64
mov ecx, eax
call fcn.00401520
mov eax, dword [esi]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x8c]
call fcn.00401520
mov ecx, dword [ebp - 0x308]
push 5
push 0x46dbc4
call fcn.004016e0
mov ecx, dword [ebp - 0x318]
lea edx, [ebp - 0x74]
push dword [ebp - 0x31c]
push edx
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, dword [ebp - 0x2ec]
mov bl, al
test edi, edi
je 0x4097d2
mov esi, edi
cmp esi, dword [ebp - 0x2f8]
je 0x409ed4
mov edi, dword [ebp - 0x2f8]
lea ebx, [ebx]
mov ecx, esi
call fcn.00401520
add esi, 0x18
cmp esi, edi
jne 0x409ec0
mov edi, dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x2f4]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
mov ecx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
ja 0x409f33
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x409f24
lea edx, [eax + 0x23]
cmp edx, eax
jbe 0x409f33
mov eax, edx
test cl, 0x1f
jne 0x409f33
mov edi, dword [edi - 4]
cmp edi, ecx
jae 0x409f33
sub ecx, edi
cmp ecx, 4
jb 0x409f33
cmp ecx, 0x23
ja 0x409f33
push eax
push edi
call fcn.004220bd
add esp, 8
jmp 0x4097d2
call fcn.0043c2f4
int3