Function at 0x43e648
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x43e650
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x43eb97
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
push 0
push 0x64
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2d0]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x18]
call fcn.004055a8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x43e742
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x43e742
inc esi
xor ebx, ebx
push dword [ebp - 0x18]
push 0x43ebb4
push 0x43ebc0
push 0x43ebcc
push 0x43ebb4
push 0x43ebf8
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
push dword [ebp - 0x30]
push 0x43ec28
push 0x43ebb4
push 0x43ebb4
lea ecx, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edi, dword [eax]
call dword [edi + 0x24]
push dword [ebp - 0x34]
lea eax, [ebp - 0x18]
mov edx, 0xb
call fcn.0040593c
inc ebx
dec esi
jne 0x43e6cf
mov eax, dword [ebp - 0x18]
call fcn.00405868
add eax, 0x64
cdq
push edx
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2e8]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00405868
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call fcn.00406e7c
mov esi, eax
test esi, esi
jl 0x43e814
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.0043caf4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x43e810
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4]
call fcn.00405868
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0x66
add eax, 0x21
add edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ebx*4]
call fcn.00405868
add edi, eax
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
test eax, eax
jns 0x43e7e3
add eax, 0xf
sar eax, 4
cdq
push edx
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2f0]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x24], eax
inc ebx
dec esi
jne 0x43e794
push 0
push 0x64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x1f4
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2f8]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.00405640
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.00405640
lea eax, [ebp - 0xc]
call fcn.0043e584
mov eax, dword [ebp - 0xc]
call fcn.00405868
mov esi, eax
test esi, esi
jle 0x43e8c8
mov ebx, 1
mov eax, dword [ebp - 0xc]
cmp byte [eax + ebx - 1], 0x2f
jne 0x43e8c4
lea eax, [ebp - 8]
push eax
mov esi, ebx
dec esi
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405aa0
mov ecx, esi
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.00405ae0
jmp 0x43e8c8
inc ebx
dec esi
jne 0x43e893
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 4]
call fcn.0043e4e0
cmp dword [ebp - 4], 0
je 0x43e945
lea eax, [ebp - 4]
call fcn.0043e584
lea eax, [ebp - 0x14]
push eax
mov cl, 0x3a
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00412b74
cmp dword [ebp - 0x14], 0
je 0x43e950
mov eax, dword [ebp - 0x14]
call fcn.00405868
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405a38
mov edx, eax
xor eax, eax
pop ecx
call fcn.004128c0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43e950
lea eax, [ebp - 0x48]
push eax
mov cl, 0x3a
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00412b74
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 4]
call fcn.00405640
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
jmp 0x43e950
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405640
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0043cd84
pop ecx
test al, al
je 0x43eb6f
push 0x43ec34
push dword [ebp - 0xc]
push 0x43ec44
push 0x43ebb4
push 0x43ec58
push dword [ebp - 8]
push 0x43ec68
lea eax, [ebp - 0x4c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.00412694
push dword [ebp - 0x4c]
push 0x43ebb4
push 0x43ec74
push 0x43ebb4
push 0x43ec90
push 0x43ebb4
push 0x43ecac
push 0x43ebb4
push 0x43ecd0
push 0x43ebcc
push 0x43ebb4
push 0x43ed08
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x24]
add eax, 4
add eax, 0x21
add eax, 2
mov cl, 0x30
mov edx, 1
call fcn.0041257c
push dword [ebp - 0x50]
push 0x43ebb4
lea eax, [ebp - 0x10]
mov edx, 0x15
call fcn.0040593c
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x43ea3a
push dword [ebp - 0x10]
push 0x43ed24
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.0043aa40
push dword [ebp - 0x54]
push 0x43ebb4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040593c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x43ea4c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x43ea92
push dword [ebp - 0x10]
push 0x43ed34
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push 0x43ec68
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.0040593c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00415b2c
push dword [ebp - 0x58]
push 0x43ebb4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040593c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00405874
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.0043ca5c
test al, al
je 0x43eb66
mov byte [ebp - 0x19], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call fcn.00406e7c
mov esi, eax
test esi, esi
jl 0x43eb22
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.00405a38
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43eb1e
push ebp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ebx*4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x28]
call fcn.0043e284
pop ecx
test al, al
jne 0x43eb1e
mov byte [ebp - 0x19], 0
jmp 0x43eb22
inc ebx
dec esi
jne 0x43ead5
mov edx, 0x43ed54
mov eax, dword [ebp - 0x28]
call fcn.0043ca5c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [ebp - 0x19], 0
je 0x43eb50
push ebp
mov eax, dword [ebp - 0x28]
call fcn.0043e0f0
pop ecx
test al, al
jne 0x43eb54
xor eax, eax
jmp 0x43eb56
mov al, 1
mov byte [ebp - 0x19], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x28]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43eb9e
lea eax, [ebp - 0x5c]
mov edx, 0xd
call fcn.004055cc
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004055cc
ret