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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x43c34c
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x43c893
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 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 - 0x28]
call fcn.00404b1c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x43c43e
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 0x43c43e
inc esi
xor ebx, ebx
push dword [ebp - 0x28]
push 0x43c8ac
push 0x43c8b8
push 0x43c8c4
push 0x43c8ac
push 0x43c8f0
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 0x43c920
push 0x43c8ac
push 0x43c8ac
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 - 0x28]
mov edx, 0xb
call fcn.00404e9c
inc ebx
dec esi
jne 0x43c3cb
mov eax, dword [ebp - 0x28]
call fcn.00404ddc
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 - 0x28]
call fcn.00404ddc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call fcn.00405db4
mov esi, eax
test esi, esi
jl 0x43c510
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.0043a7e8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x43c50c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4]
call fcn.00404ddc
mov edi, eax
mov eax, dword [ebp - 0x14]
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.00404ddc
add edi, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x43c4df
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 - 0x14]
add dword [ebp - 0x18], eax
inc ebx
dec esi
jne 0x43c490
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 - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.00404bb4
lea eax, [ebp - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.00404bb4
lea eax, [ebp - 0x10]
call fcn.0043c280
mov eax, dword [ebp - 0x10]
call fcn.00404ddc
mov esi, eax
test esi, esi
jle 0x43c5c4
mov ebx, 1
mov eax, dword [ebp - 0x10]
cmp byte [eax + ebx - 1], 0x2f
jne 0x43c5c0
lea eax, [ebp - 0xc]
push eax
mov esi, ebx
dec esi
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040503c
mov ecx, esi
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.0040507c
jmp 0x43c5c4
inc ebx
dec esi
jne 0x43c58f
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 8]
call fcn.0043c1dc
cmp dword [ebp - 8], 0
je 0x43c641
lea eax, [ebp - 8]
call fcn.0043c280
lea eax, [ebp - 0x24]
push eax
mov cl, 0x3a
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.0040a8d8
cmp dword [ebp - 0x24], 0
je 0x43c64c
mov eax, dword [ebp - 0x24]
call fcn.00404ddc
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404fdc
mov edx, eax
xor eax, eax
pop ecx
call fcn.0040a62c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43c64c
lea eax, [ebp - 0x48]
push eax
mov cl, 0x3a
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040a8d8
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 8]
call fcn.00404bb4
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
jmp 0x43c64c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404bb4
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0043aa78
pop ecx
test al, al
je 0x43c86b
push 0x43c92c
push dword [ebp - 0x10]
push 0x43c93c
push 0x43c8ac
push 0x43c950
push dword [ebp - 0xc]
push 0x43c960
lea eax, [ebp - 0x4c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.0040a44c
push dword [ebp - 0x4c]
push 0x43c8ac
push 0x43c96c
push 0x43c8ac
push 0x43c988
push 0x43c8ac
push 0x43c9a4
push 0x43c8ac
push 0x43c9c8
push 0x43c8c4
push 0x43c8ac
push 0x43ca00
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
add eax, 4
add eax, 0x21
add eax, 2
mov cl, 0x30
mov edx, 1
call fcn.0040a35c
push dword [ebp - 0x50]
push 0x43c8ac
lea eax, [ebp - 0x20]
mov edx, 0x15
call fcn.00404e9c
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x43c736
push dword [ebp - 0x20]
push 0x43ca1c
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.00438724
push dword [ebp - 0x54]
push 0x43c8ac
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404e9c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x43c748
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x43c78e
push dword [ebp - 0x20]
push 0x43ca2c
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push 0x43c960
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404e9c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00418414
push dword [ebp - 0x58]
push 0x43c8ac
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404e9c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x28]
call fcn.00404de4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0043a750
test al, al
je 0x43c862
mov byte [ebp - 1], 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.00405db4
mov esi, eax
test esi, esi
jl 0x43c81e
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.00404fdc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43c81a
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 - 0x1c]
call fcn.0043bf7c
pop ecx
test al, al
jne 0x43c81a
mov byte [ebp - 1], 0
jmp 0x43c81e
inc ebx
dec esi
jne 0x43c7d1
mov edx, 0x43ca4c
mov eax, dword [ebp - 0x1c]
call fcn.0043a750
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 - 1], 0
je 0x43c84c
push ebp
mov eax, dword [ebp - 0x1c]
call fcn.0043bde8
pop ecx
test al, al
jne 0x43c850
xor eax, eax
jmp 0x43c852
mov al, 1
mov byte [ebp - 1], 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 - 0x1c]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c89a
lea eax, [ebp - 0x5c]
mov edx, 0x10
call fcn.00404b40
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b40
ret