Function at 0x4033d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642ff7
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x76e440]
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
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xf
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.Loading_AddIns_n
mov word [ecx], ax
call fcn.004054c0
push 0x8000
call fcn.0042fa30
xor edi, edi
add esp, 0x1c
cmp dword [0x76c51c], edi
jne 0x40345a
sub esp, 0x18
mov ecx, esp
push str.Bypassing_add_in_loading_n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x1c
jmp 0x4038a7
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403490
push str.GetModuleFileName_NULL__szFilePath___countof_szFilePath__
push 0x183
push str.AddIns.cpp
push 1
call fcn.00409b10
add esp, 0x10
jmp 0x4038dd
mov dl, byte [ebp - 0x114]
test dl, dl
je 0x4034b2
lea ecx, [ebp - 0x114]
mov eax, ecx
cmp dl, 0x5c
mov dl, byte [ecx + 1]
cmove eax, ecx
inc ecx
test dl, dl
jne 0x4034a2
mov byte [eax], dl
push str.AddInExclusionList
lea ecx, [ebp - 0x290]
call fcn.00402b30
push str.AddInInclusionList
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 0
call fcn.00402b30
cmp byte [ebp - 0x114], 0
mov byte [ebp - 4], 1
je 0x403886
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00450a80
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x40350c
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
push str.Current_dir____ws__n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 8
jb 0x403544
push dword [ebp - 0x12c]
call fcn.00452732
add esp, 4
mov edx, 0x104
lea eax, [ebp - 0x114]
nop
cmp byte [eax], 0
je 0x40355e
inc eax
dec edx
jne 0x403550
jmp 0x403886
test edx, edx
je 0x403886
mov ecx, 0x104
lea eax, [ebp - 0x114]
mov esi, ecx
sub esi, edx
lea eax, [eax + esi]
sub ecx, esi
je 0x4035ae
lea edx, [esi - 0xfe]
mov esi, str..dll
add edx, ecx
sub esi, eax
jmp 0x403590
test edx, edx
je 0x4035aa
mov bl, byte [esi + eax]
test bl, bl
je 0x4035aa
mov byte [eax], bl
dec edx
inc eax
dec ecx
jne 0x403590
dec eax
mov ebx, 0x8007007a
jmp 0x4035b8
test ecx, ecx
jne 0x4035b6
dec eax
mov ebx, 0x8007007a
jmp 0x4035b8
xor ebx, ebx
mov byte [eax], 0
test ebx, ebx
js 0x403886
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00450a80
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x4035e5
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
push str.File_spec____ws__n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 8
jb 0x40361d
push dword [ebp - 0x12c]
call fcn.00452732
add esp, 4
push 0x13c
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], 0
push 0
push eax
call fcn.005ee030
add esp, 0xc
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
jne 0x403672
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x18
mov ecx, esp
push str.Invalid_file_handle._Error_is__u._n
jmp 0x403874
lea eax, [ebp - 0x240]
xor ebx, ebx
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x278], ebx
push eax
call fcn.00450a80
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x40369c
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
push str.Examining___ws__n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 8
jb 0x4036d4
push dword [ebp - 0x12c]
call fcn.00452732
add esp, 4
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x284]
call fcn.00403380
test al, al
lea eax, [ebp - 0x240]
push eax
je 0x403700
call fcn.0040e5a0
add esp, 4
mov esi, eax
jmp 0x4037e0
lea ecx, [ebp - 0x290]
call fcn.00403380
test al, al
jne 0x403839
push 1
push 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x4037ce
push str.LoadAddIn
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x40375e
push str._LPLOADADDIN_GetProcAddress_hMod__szLoadAddIn_
push 0x1c3
push str.AddIns.cpp
push eax
call fcn.00409b10
add esp, 0x10
mov dword [ebp - 0x278], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test ebx, ebx
je 0x4037c8
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x284]
call fcn.00403080
lea eax, [ebp - 0x240]
push eax
call fcn.0040e5a0
mov ebx, dword [ebp - 0x278]
add esp, 4
mov esi, eax
test ebx, ebx
js 0x4037c2
push str.LoadAddIn
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4037c2
push str._LPLOADADDIN_GetProcAddress_hMod__szLoadAddIn_
push 0x1ce
push str.AddIns.cpp
push eax
call fcn.00409b10
add esp, 0x10
mov ebx, eax
test esi, esi
jne 0x4037e4
jmp 0x4037ce
mov ebx, dword [ebp - 0x278]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x290]
call fcn.00403080
test esi, esi
je 0x403839
sub esp, 0x18
mov ecx, esp
push str.Opened_module_n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x1c
test ebx, ebx
js 0x403832
push str.LoadAddIn
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x4038f9
push str._LPLOADADDIN_GetProcAddress_hMod__szLoadAddIn_
push 0x1dc
push str.AddIns.cpp
push eax
call fcn.00409b10
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403672
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x403886
push esi
sub esp, 0x18
mov ecx, esp
push str.FindNextFile_error._Error_is__u._n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x20
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0
call fcn.00402c20
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0xffffffff
call fcn.00402c20
call fcn.00403e00
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0x14
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.Done_loading_AddIns_n
mov word [ecx], ax
call fcn.004054c0
push 0x8000
call fcn.0042fa30
add esp, 0x1c
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.005ed4e7
mov esp, ebp
pop ebp
ret
push esi
call fcn.00403340
add esp, 4
cmp eax, 3
jne 0x403832
sub esp, 0x18
mov ecx, esp
push str.Found_an_add_in_n
call fcn.00402ad0
push 0x8000
call fcn.0042fa30
add esp, 0x1c
test edi, edi
jne 0x403952
mov edi, dword [0x776b38]
test edi, edi
jne 0x403972
push 0x54
call fcn.00452705
push 0x54
push edi
push eax
mov dword [0x776b38], eax
call fcn.005ee030
mov edi, dword [0x776b38]
jmp 0x403967
push 0x54
call fcn.00452705
push 0x54
push 0
push eax
mov dword [edi], eax
call fcn.005ee030
mov edi, dword [edi]
add esp, 0x10
test edi, edi
je 0x403839
push ebx
push esi
push edi
call fcn.00403a40
add esp, 0xc
jmp 0x403839