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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cb70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x5ba984]
push esi
xor esi, esi
push edi
cmp ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
je 0x43424f
mov eax, dword [ebp + 8]
push eax
call fcn.0049d4f0
mov ebx, eax
cmp ebx, esi
mov dword [ebp + 8], ebx
je 0x43424f
cmp dword [ebx + 0x1c], esi
je 0x43424f
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43424f
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x1c], edx
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov cl, byte [ebx + 0x28]
mov eax, dword [eax + 8]
test cl, cl
mov dword [ebp - 0x20], eax
jne 0x4340bb
test al, al
jne 0x43408f
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x1bc]
mov edx, dword [ecx + 8]
dec edx
xor eax, eax
cmp eax, edx
jg 0x4340fd
mov ebx, dword [ecx + 4]
mov esi, eax
shl esi, 4
mov esi, dword [ebx + esi]
cmp dword [esi + 0x408], edi
je 0x4340e7
mov ebx, dword [ebp + 8]
inc eax
jmp 0x4340ca
xor edx, edx
cmp eax, edx
jl 0x4340fa
mov ecx, dword [ecx + 4]
shl eax, 4
mov esi, dword [ecx + eax]
cmp esi, edx
jne 0x434107
mov ebx, dword [ebp + 8]
push edi
mov ecx, ebx
call fcn.00442940
jmp 0x43408f
mov ebx, dword [ebp + 8]
xor cl, cl
mov al, byte [ebx + 0x28]
test al, al
jne 0x434152
mov al, byte [ebp - 0x20]
test al, al
jne 0x434152
cmp dword [esi + 0x644], 3
jne 0x434152
mov eax, dword [esi + 0x768]
mov dword [esi + 8], edx
cmp eax, 0x7573
jne 0x434139
mov dword [esi + 0x768], edx
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [edx + 0x1c]
push eax
call fcn.004f9120
push 0
mov ecx, esi
call fcn.004f9050
mov cl, 1
mov eax, dword [esi + 0x644]
test eax, eax
je 0x434188
cmp eax, 2
je 0x434188
cmp eax, 3
jne 0x434238
mov al, byte [ebx + 0x28]
test al, al
je 0x43408f
mov ecx, dword [esi + 0x408]
push ecx
mov ecx, ebx
call fcn.00442940
jmp 0x43408f
mov eax, dword [esi + 8]
test eax, eax
je 0x4341b0
mov edx, dword [esi + 0x408]
mov ecx, ebx
push edx
mov dword [esi + 8], 0
call fcn.00442110
mov byte [esi + 0x34e], 0
jmp 0x43408f
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4341c0
cmp dword [ebp - 0x24], eax
jge 0x43408f
mov byte [esi + 0x34e], 0
mov al, byte [ebx + 0x28]
test al, al
jne 0x434202
test cl, cl
je 0x434202
mov eax, dword [esi + 0x40]
test eax, eax
je 0x434202
mov eax, dword [esi + 0x54]
test eax, eax
je 0x434202
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434202
mov edi, dword [esi + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x434202
mov byte [esi + 0x34e], 1
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [edi + 0x1c]
push eax
call fcn.004f9120
push esi
call fcn.00451730
mov dword [esi + 8], 1
mov ecx, dword [edi + 0x144]
add esp, 4
mov dword [esi], ecx
mov ecx, esi
push 1
call fcn.004f9600
mov ecx, esi
call fcn.004f96f0
mov eax, dword [ebp - 0x18]
mov ecx, ebx
inc eax
mov dword [ebp - 0x18], eax
call fcn.00442bc0
cmp dword [ebp - 0x18], eax
jl 0x43408f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4