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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4380a0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404960
xor eax, eax
push ebp
push 0x4385d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0x64
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2d0]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x2c]
call fcn.004035f4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x438192
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 0x438192
inc esi
xor ebx, ebx
push dword [ebp - 0x2c]
push 0x4385f4
push 0x438600
push 0x43860c
push 0x4385f4
push 0x438638
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 0x438668
push 0x4385f4
push 0x4385f4
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 - 0x2c]
mov edx, 0xb
call fcn.004038d0
inc ebx
dec esi
jne 0x43811f
mov eax, dword [ebp - 0x2c]
call fcn.00403810
add eax, 0x64
cdq
push edx
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2e8]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x2c]
call fcn.00403810
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call fcn.00404254
mov esi, eax
test esi, esi
jl 0x438256
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.00436714
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x438252
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4]
call fcn.00403810
mov edi, eax
mov eax, dword [ebp - 0x18]
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.00403810
add edi, eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
test eax, eax
jns 0x43822a
add eax, 0xf
sar eax, 4
cdq
push edx
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2f0]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
inc ebx
dec esi
jne 0x4381db
push 0
push 0x64
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x1f4
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2f8]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
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 - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.0040368c
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.0040368c
lea eax, [ebp - 0x14]
call fcn.00437fd4
mov eax, dword [ebp - 0x14]
call fcn.00403810
mov esi, eax
test esi, esi
jle 0x438300
mov ebx, 1
mov eax, dword [ebp - 0x14]
cmp byte [eax + ebx - 1], 0x2f
jne 0x4382fc
lea eax, [ebp - 0x10]
push eax
mov esi, ebx
dec esi
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00403a14
mov ecx, esi
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00403a54
jmp 0x438300
inc ebx
dec esi
jne 0x4382cb
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0xc]
call fcn.00437f3c
cmp dword [ebp - 0xc], 0
je 0x43838b
lea eax, [ebp - 0xc]
call fcn.00437fd4
lea eax, [ebp - 0x28]
push eax
mov cl, 0x3a
mov edx, 2
mov eax, dword [ebp - 0xc]
call fcn.0040826c
cmp dword [ebp - 0x28], 0
je 0x43837b
mov eax, dword [ebp - 0x28]
call fcn.00403810
push eax
mov eax, dword [ebp - 0x28]
call fcn.004039d4
mov edx, eax
xor eax, eax
pop ecx
call fcn.00407fc8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43837b
lea eax, [ebp - 0x30]
push eax
mov cl, 0x3a
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040826c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0xc]
call fcn.0040368c
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.0040368c
jmp 0x438396
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040368c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00436970
pop ecx
test al, al
je 0x4385a9
push 0x438674
push dword [ebp - 0x14]
push 0x438684
push 0x4385f4
push 0x438698
push dword [ebp - 0x10]
push 0x4386a8
lea eax, [ebp - 0x30]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.00407de8
push dword [ebp - 0x30]
push 0x4385f4
push 0x4386b4
push 0x4385f4
push 0x4386d0
push 0x4385f4
push 0x4386ec
push 0x4385f4
push 0x438710
push 0x43860c
push 0x4385f4
push 0x438748
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 4
add eax, 0x21
add eax, 2
mov cl, 0x30
mov edx, 1
call fcn.00407cf8
push dword [ebp - 0x34]
push 0x4385f4
lea eax, [ebp - 0x24]
mov edx, 0x15
call fcn.004038d0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x438483
push dword [ebp - 0x24]
push 0x438764
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.00434a04
push dword [ebp - 0x30]
push 0x4385f4
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.004038d0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x438495
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4384db
push dword [ebp - 0x24]
push 0x438774
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push 0x4386a8
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004038d0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00415b10
push dword [ebp - 0x30]
push 0x4385f4
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.004038d0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
call fcn.00403818
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0043667c
test al, al
je 0x4385a0
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call fcn.00404254
mov esi, eax
test esi, esi
jl 0x438566
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.004039d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x438562
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 - 0x20]
call fcn.00437ce4
pop ecx
test al, al
jne 0x438562
mov byte [ebp - 5], 0
jmp 0x438566
inc ebx
dec esi
jne 0x438519
mov edx, 0x438794
mov eax, dword [ebp - 0x20]
call fcn.0043667c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [ebp - 5], 0
je 0x43858f
push ebp
mov eax, dword [ebp - 0x20]
call fcn.00437ae4
pop ecx
test al, al
jne 0x438593
xor eax, eax
jmp 0x438595
mov al, 1
mov byte [ebp - 5], al
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x20]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4385e0
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403618
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403618
lea eax, [ebp - 4]
call fcn.00404900
ret