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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 1
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x34], esi
call fcn.0045deda
xor edi, edi
push 0x49dd08
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00465952
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, 8
push ecx
mov eax, dword [eax]
push eax
call fcn.00441a0b
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
sete bl
call fcn.00465892
test bl, bl
je 0x42a2ce
mov edx, dword [esi + 0x1c]
test byte [edx + 0x18], 4
jne 0x42a2ce
mov ecx, esi
call fcn.0042a0b0
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a2e5
mov edi, 1
mov ecx, dword [esi + 0x1c]
mov edx, dword [0x484a38]
push edx
push 8
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0045dfdc
mov eax, dword [ebp - 0xc4]
xor ebx, ebx
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xbc], ebx
je 0x42a32d
mov edx, dword [esi + 0x1c]
test byte [edx + 0x18], 4
jne 0x42a91e
mov ecx, esi
call fcn.0042a0b0
jmp 0x42a91e
cmp edi, ebx
je 0x42a589
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x94
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x154]
push 0x499ee4
push ecx
push 0x499ee0
push edx
push 0x499edc
push eax
push 0x499ec4
lea ecx, [ebp - 0xb8]
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e125
mov ecx, eax
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e125
mov ecx, eax
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e125
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
lea ecx, [esi + 4]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00465607
lea edx, [esi + 8]
lea ecx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 1
call fcn.00465607
lea eax, [esi + 0xc]
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.00465607
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
lea eax, [esi + 0x18]
mov dword [ebp - 0x50], ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
mov dword [ebp - 0x4c], edx
call fcn.00465607
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x20]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x60], vtable.rl::CError.0
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [edx + 8]
mov dword [ebp - 0x38], edx
mov al, byte [ebp - 0x1d]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x30], al
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov bl, 6
push 0x49d94c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00465900
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x14]
push ecx
push edx
mov byte [ebp - 4], 7
call fcn.0042c0d0
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00465892
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x42a4c3
mov ecx, dword [ebp - 0x28]
mov eax, 0x66666667
sub ecx, ebx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x42a4c3
push 0
lea ecx, [ebx + 0xc]
call fcn.00465cc2
push 0x499eac
lea ecx, [ebp - 0xb8]
mov edi, eax
call fcn.0045e2ed
push edi
mov ecx, eax
call fcn.0045e2ed
push 0xa
mov ecx, eax
call fcn.0045e087
push 0x42a970
mov ecx, eax
call fcn.0042a950
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], ecx
mov edi, ebx
cmp edi, dword [ebp - 0x14]
je 0x42a4e5
push 0
mov ecx, edi
call fcn.0042b880
mov ebx, dword [ebp - 0x2c]
add edi, 0x14
jmp 0x42a4cf
push ebx
call fcn.0046956a
add esp, 4
jmp 0x42a4f9
lea edx, [ebp - 0x5c]
lea ecx, [esi + 4]
push edx
mov dword [ebp - 4], 4
call fcn.004659cb
lea eax, [ebp - 0x58]
lea ecx, [esi + 8]
push eax
call fcn.004659cb
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [esi + 0xc]
call fcn.004659cb
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov dword [esi + 0x10], edx
push ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.004659cb
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
lea eax, [esi + 0x20]
mov dword [esi + 0x1c], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov edx, dword [esi]
mov dword [eax + 8], ecx
lea eax, [ebp - 0xc4]
push eax
mov ecx, esi
call dword [edx + 8]
push 0x42a970
push 0xa
lea ecx, [ebp - 0xb8]
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00429e60
push 0x499e6c
lea ecx, [ebp - 0xb8]
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov ecx, dword [0x49aec0]
mov dword [ebp - 0x1c], ecx
lea edx, [esi + 0x20]
mov byte [ebp - 4], 9
push edx
call fcn.00442a3d
xor edx, edx
lea ecx, [eax + 0x14]
mov dx, word [esi + 0x24]
push ecx
push edx
push eax
lea eax, [ebp - 0x1c]
push 0x499e5c
push eax
call fcn.004638af
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
push ecx
push 0x499e50
lea ecx, [ebp - 0xb8]
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
mov eax, dword [esi + 8]
lea ecx, [ebp - 0xb8]
push eax
push 0x499e40
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0xb8]
push eax
push 0x499e2c
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0xb8]
push edx
push 0x499e1c
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e125
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov ecx, esi
call fcn.0042b2e0
lea edi, [esi + 0x18]
lea ecx, [ebp - 0x18]
push edi
mov ebx, eax
call fcn.00465607
push 0x499e18
push 0x498ca0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0046325f
cmp ebx, 1
jne 0x42a72f
push 0x49dd08
lea ecx, [ebp - 0x14]
call fcn.00465952
mov eax, dword [ebp - 0x14]
mov edi, dword [edi]
push eax
push edi
call fcn.00441a0b
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
setne bl
call fcn.00465892
test bl, bl
je 0x42a719
mov ecx, dword [ebp - 0x18]
push ecx
push 0x499e04
lea ecx, [ebp - 0xb8]
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42a82f
push eax
push 0x499df4
jmp 0x42a808
test ebx, ebx
push 0x49dd08
jne 0x42a7a3
lea ecx, [ebp - 0x14]
call fcn.00465952
mov edx, dword [ebp - 0x14]
mov edi, dword [edi]
push edx
push edi
call fcn.00441a0b
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
setne bl
call fcn.00465892
test bl, bl
je 0x42a790
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xb8]
push eax
push 0x499ddc
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42a82f
push eax
push 0x499dcc
jmp 0x42a808
lea ecx, [ebp - 0x14]
call fcn.00465952
mov ecx, dword [ebp - 0x14]
mov edi, dword [edi]
push ecx
push edi
call fcn.00441a0b
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
setne bl
call fcn.00465892
test bl, bl
je 0x42a7fb
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xb8]
push edx
push 0x499db8
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42a82f
push eax
push 0x499da8
lea ecx, [ebp - 0xb8]
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e125
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov eax, dword [esi]
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push 0x49dd08
lea ecx, [ebp - 0x14]
call fcn.00465952
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.00441a0b
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
setne bl
call fcn.00465892
test bl, bl
je 0x42a89b
mov eax, dword [esi + 4]
lea ecx, [ebp - 0xb8]
push eax
push 0x499d94
call fcn.0045e2ed
mov ecx, eax
call fcn.0045e2ed
push 0x42a970
push 0xa
mov ecx, eax
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
push 0x499e6c
lea ecx, [ebp - 0xb8]
call fcn.0045e2ed
mov edi, eax
push 0x42a970
push 0xa
mov ecx, edi
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
push 0x42a970
push 0xa
mov ecx, edi
call fcn.0045e087
mov ecx, eax
call fcn.0042a950
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xbc]
test eax, eax
je 0x42a8fb
mov edx, dword [esi + 0x1c]
test byte [edx + 0x18], 4
jne 0x42a8fb
mov ecx, esi
call fcn.0042a0b0
lea ecx, [ebp - 0xc4]
call fcn.0045e02f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00465892
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00465892
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.0045df9b
lea ecx, [ebp - 0xb0]
call fcn.0045de61
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret