Function at 0x40b030
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475480
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2a0]
mov eax, dword [esp + 0x2a4]
mov dword [ebp + 0x6c4], eax
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov eax, dword [ebp + 0x6c4]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
xor edx, edx
sar ecx, 2
mov dword [esp + 0x2c], edx
test ecx, ecx
jbe 0x40b5a1
mov ecx, dword [ebp + 0x6c4]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, edx
jbe 0x40b5e4
lea eax, [eax + edx*4]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x298], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x40b102
dec eax
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
jne 0x40b102
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
push 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp ax, 0x3a
jne 0x40b154
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 2
jne 0x40b154
cmp eax, ebx
je 0x40b145
dec eax
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
je 0x40b145
push 0x47d53c
lea ecx, [esp + 0x18]
call dword [0x476390]
push 0x47d5dc
lea ecx, [esp + 0x18]
call dword [0x476390]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
je 0x40b5e9
mov ecx, 0x47d59c
lea eax, [esp + 0x68]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b1a6
cmp dx, bx
je 0x40b1a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b1a6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40b180
xor eax, eax
jmp 0x40b1ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b54d
mov ecx, 0x47d580
lea eax, [esp + 0x68]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b1e6
cmp dx, bx
je 0x40b1e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b1e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40b1c0
xor eax, eax
jmp 0x40b1eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b54d
mov al, byte [esp + 0x3c]
test al, 4
jne 0x40b54d
test al, 0x10
je 0x40b419
push ebx
push 0x2a
lea ecx, [esp + 0x1c]
xor esi, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
je 0x40b220
mov esi, 1
push ebx
push 0x3f
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
je 0x40b237
mov esi, 1
mov ecx, dword [ebp + 0x6c4]
cmp dword [ecx + 0x48], ebx
je 0x40b2b8
cmp esi, ebx
je 0x40b2b8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0x298], 1
lea esi, [esp + 0x28]
call fcn.00401a10
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call dword [0x476390]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x6c4]
push ecx
add edx, 0x10
push ebp
lea ecx, [esp + 0x70]
call fcn.0040b620
mov edx, dword [esp + 0x58]
push 1
push ebx
push ebx
push edx
call fcn.0046bd70
mov ecx, dword [esp + 0x5c]
xor esi, esi
add eax, ecx
adc edx, esi
add dword [edi], eax
adc dword [edi + 4], edx
mov byte [esp + 0x298], bl
lea ecx, [esp + 0x28]
jmp 0x40b547
push 0x47d6d8
lea ecx, [esp + 0x1c]
call dword [0x4763f4]
mov byte [esp + 0x298], 2
mov edx, dword [esp + 0x2a4]
cmp dword [edx + 0x44], ebx
je 0x40b358
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea esi, [esp + 0x18]
call fcn.00401a10
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 3
jl 0x40b358
push 1
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp ax, 0x3a
jne 0x40b358
push 2
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp ax, 0x5c
jne 0x40b358
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x298], 3
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x298], 2
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x476390]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0x298], 4
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp ax, 0x3a
jne 0x40b3c3
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0xc]
cmp eax, 2
jne 0x40b3c3
cmp eax, ebx
je 0x40b3cc
dec eax
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
je 0x40b3cc
push 0x47d53c
lea ecx, [esp + 0x24]
call dword [0x476390]
jmp 0x40b3cc
lea esi, [esp + 0x20]
call fcn.00401a10
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call dword [0x476390]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x6c4]
mov ecx, dword [esp + 0x20]
push edi
push edx
add eax, 0x10
push eax
push ecx
mov ecx, ebp
call fcn.0040b7b0
mov byte [esp + 0x298], 2
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x298], bl
lea ecx, [esp + 0x18]
jmp 0x40b547
push 0x47d6d8
lea ecx, [esp + 0x20]
call dword [0x4763f4]
mov byte [esp + 0x298], 5
mov edx, dword [esp + 0x2a4]
cmp dword [edx + 0x44], ebx
je 0x40b4b9
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea esi, [esp + 0x1c]
call fcn.00401a10
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 3
jl 0x40b4b9
push 1
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp ax, 0x3a
jne 0x40b4b9
push 2
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
cmp ax, 0x5c
jne 0x40b4b9
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x298], 6
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov byte [esp + 0x298], 5
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x20]
call dword [0x476390]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [esp + 0x298], 7
lea esi, [esp + 0x24]
call fcn.00401a10
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call dword [0x476390]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x6c4]
push ecx
mov ecx, dword [esp + 0x20]
add edx, 0x10
push ebp
call fcn.0040b620
mov edx, dword [esp + 0x58]
push 1
push ebx
push ebx
push edx
call fcn.0046bd70
mov ecx, dword [esp + 0x5c]
xor esi, esi
add eax, ecx
adc edx, esi
add dword [edi], eax
adc dword [edi + 4], edx
mov byte [esp + 0x298], 5
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x298], bl
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x40b171
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x298], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 0x6c4]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov edx, dword [esp + 0x2c]
inc edx
sar ecx, 2
mov dword [esp + 0x2c], edx
cmp edx, ecx
jb 0x40b0a2
push ebp
call fcn.0040c090
mov eax, dword [ebp + 0x6cc]
neg eax
sbb eax, eax
and eax, 0x9bfc0e01
add eax, 0x6403f200
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00428cb4
add esp, 0x28c
ret 8
call fcn.0040c420
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 0x6c8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov dword [esp + 0x298], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 0x6403ef00
jmp 0x40b5bb