Function at 0x43d850
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xaa0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov eax, dword [esi + 4]
test eax, eax
jle 0x43d877
push 0
mov ecx, esi
call fcn.0043e610
mov eax, dword [esi + 4]
test eax, eax
jg 0x43d867
mov eax, dword [esp + 0xab8]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x2b0]
push str._sProtocols.dll
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x16c]
lea eax, [esp + 0x2ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x43d8c8
pop edi
pop esi
pop ebp
mov eax, pe_nt_image_headers32
pop ebx
add esp, 0xaa0
ret 0xc
mov ebp, dword [esp + 0xab4]
push 0x10
push 0
push 0
push str.COUNT
push str.PROTOCOLS
mov ecx, ebp
call fcn.00441b50
mov edx, dword [esp + 0x184]
mov dword [esp + 0x14], eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x180]
mov eax, dword [esp + 0xab8]
xor ecx, edx
lea edx, [esp + 0x198]
and ecx, 0x7fffffff
push edx
mov dword [esp + 0xac], ecx
push eax
lea ecx, [esp + 0x2b4]
push str._sProtocols_s
push ecx
call ebx
lea edx, [esp + 0x2bc]
push edx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 0x14
mov dword [esp + 0x68], eax
test eax, eax
mov dword [esp + 0x1c], 1
je 0x43d9df
xor edi, edi
cmp edi, 0x3c
jge 0x43d9f1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x16c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x43d9f1
mov edx, dword [esp + 0x180]
mov ecx, dword [esp + 0x184]
xor edx, ecx
mov ecx, dword [esp + 0xab8]
and edx, 0x7fffffff
lea eax, [esp + 0x198]
mov dword [esp + edi + 0xac], edx
push eax
push ecx
lea edx, [esp + 0x2b4]
push str._sProtocols_s
push edx
call ebx
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + edi + 0x6c], eax
inc ecx
add edi, 4
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x43d95a
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xaa0
ret 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xabc]
test al, al
jne 0x43dac4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x43dac4
xor edi, edi
test eax, eax
jle 0x43daad
push edi
lea edx, [esp + 0x28]
push str.PROTOCOL_03XTIME
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, ebp
push 0x7fffffff
push 0
push 0
push eax
push str.PROTOCOLS
call fcn.00441b50
cmp eax, dword [esp + edi*4 + 0xa8]
jne 0x43dac4
push edi
lea ecx, [esp + 0x28]
push str.PROTOCOL_03XDLL
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x2ac]
lea eax, [esp + 0x24]
mov ecx, ebp
push 0x400
push edx
push eax
push str.PROTOCOLS
call fcn.00441a30
mov ecx, dword [esp + edi*4 + 0x68]
lea edx, [esp + 0x2ac]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x43dac4
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x43da25
xor edi, edi
test eax, eax
jle 0x43de83
lea ecx, [esp + 0x68]
mov dword [esp + 0x10], ecx
jmp 0x43dd5e
push str.PROTOCOLS
mov ecx, ebp
call fcn.00441a10
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x43de83
mov dl, byte [0x472b1c]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xe9]
mov byte [esp + 0xe8], dl
mov byte [esp + 0x44], dl
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x45]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push 0
mov esi, dword [esp + eax*4 + 0x6c]
push esi
call fcn.0044c2b0
mov edi, eax
add esp, 8
test edi, edi
je 0x43dd40
push str.ProtocolInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43db57
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x44]
push ecx
push edx
call eax
add esp, 8
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0xe8]
test al, al
je 0x43dd40
mov al, byte [esp + 0x44]
test al, al
je 0x43dd40
cmp dword [esp + 0x20], 0x9c3f
jle 0x43dd40
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
call fcn.0043e440
lea edx, [eax + 0xa2]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x43dbca
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x43dbe1
mov eax, dword [edx + 0x10]
test eax, eax
je 0x43dbd9
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x43dbe1
mov dword [esp + 0x10], 0
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x43dc12
mov eax, dword [eax]
jmp 0x43dc1f
mov eax, dword [edx + 0x10]
test eax, eax
je 0x43dc1d
mov eax, dword [eax]
jmp 0x43dc1f
xor eax, eax
lea esi, [eax + 0x81]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x43dc57
mov eax, dword [eax]
jmp 0x43dc64
mov edx, dword [edx + 0x10]
test edx, edx
je 0x43dc62
mov eax, dword [edx]
jmp 0x43dc64
xor eax, eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push esi
lea edx, [esp + 0x28]
push str.PROTOCOL_03XDLL
push edx
mov dword [eax + 0x4a4], ecx
call ebx
mov edi, dword [esp + esi*4 + 0x74]
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, ebp
push edi
push eax
push str.PROTOCOLS
call fcn.00441e40
push esi
lea ecx, [esp + 0x28]
push str.PROTOCOL_03XDESC
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0xe8]
lea eax, [esp + 0x24]
mov ecx, ebp
push edx
push eax
push str.PROTOCOLS
call fcn.00441e40
push esi
lea ecx, [esp + 0x28]
push str.PROTOCOL_03XNAME
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x44]
lea eax, [esp + 0x24]
mov ecx, ebp
push edx
push eax
push str.PROTOCOLS
call fcn.00441e40
push esi
lea ecx, [esp + 0x28]
push str.PROTOCOL_03XTIME
push ecx
call ebx
mov edx, dword [esp + esi*4 + 0xb4]
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, ebp
push edx
push eax
push str.PROTOCOLS
call fcn.00441cd0
push esi
lea ecx, [esp + 0x28]
push str.PROTOCOL_03XVER
push ecx
call ebx
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, ebp
push edx
push eax
push str.PROTOCOLS
call fcn.00441cd0
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x43dae4
jmp 0x43de7f
mov esi, dword [esp + 0x18]
push edi
lea edx, [esp + 0x28]
push str.PROTOCOL_03XDLL
push edx
call ebx
add esp, 0xc
mov ecx, esi
push 0x400
push 0xffffffffffffffff
call fcn.0043e440
add eax, 0xa2
mov ecx, ebp
push eax
lea eax, [esp + 0x2c]
push eax
push str.PROTOCOLS
call fcn.00441a80
push edi
lea ecx, [esp + 0x28]
push str.PROTOCOL_03XDESC
push ecx
call ebx
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x43ddae
mov eax, dword [eax]
jmp 0x43ddbb
mov eax, dword [esi + 0x10]
test eax, eax
je 0x43ddb9
mov eax, dword [eax]
jmp 0x43ddbb
xor eax, eax
push 0x80
lea edx, [esp + 0x28]
push eax
push edx
push str.PROTOCOLS
mov ecx, ebp
call fcn.00441a80
push edi
lea eax, [esp + 0x28]
push str.PROTOCOL_03XNAME
push eax
call ebx
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x43dded
mov eax, dword [eax]
jmp 0x43ddfa
mov eax, dword [esi + 0x10]
test eax, eax
je 0x43ddf8
mov eax, dword [eax]
jmp 0x43ddfa
xor eax, eax
add eax, 0x81
push 0x20
lea ecx, [esp + 0x28]
push eax
push ecx
push str.PROTOCOLS
mov ecx, ebp
call fcn.00441a80
push edi
lea edx, [esp + 0x28]
push str.PROTOCOL_03XVER
push edx
call ebx
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x43de2e
mov esi, dword [eax]
jmp 0x43de3b
mov esi, dword [esi + 0x10]
test esi, esi
je 0x43de39
mov esi, dword [esi]
jmp 0x43de3b
xor esi, esi
push 0xf423f
push 0
lea eax, [esp + 0x2c]
push 0
push eax
push str.PROTOCOLS
mov ecx, ebp
call fcn.00441b50
mov dword [esi + 0x4a4], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
inc edi
add esi, 4
cmp edi, eax
mov dword [esp + 0x10], esi
jl 0x43dd5a
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov ecx, ebp
push edx
push str.COUNT
push str.PROTOCOLS
call fcn.00441cd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xaa0
ret 0xc