Function at 0x403430
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor ebp, ebp
mov edi, section..data
mov ebx, 1
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403450
or eax, 0xffffffff
jmp 0x4034ac
mov eax, dword [esi + 4]
test eax, eax
jne 0x40349c
call fcn.0040b18a
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push ebx
push ecx
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403497
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [edx + 0xc], 0x20
je 0x403492
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x4034ac
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
dec eax
mov dword [esi + 4], eax
xor eax, eax
mov al, byte [ecx]
inc ecx
mov dword [esi], ecx
cmp eax, dword [edi]
jne 0x4037f9
add edi, 4
inc ebp
cmp edi, str._c_c_c_c_c_c_c_c_c_c
jb 0x403444
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4034cc
or edi, 0xffffffff
jmp 0x40352a
mov eax, dword [esi + 4]
test eax, eax
jne 0x403518
call fcn.0040b18a
mov dword [eax], 0
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
push edx
push 0x4000
push ebx
push eax
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403513
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [ecx + 0xc], 0x20
je 0x40350e
mov dword [esi + 0x38], 0xffffffff
or edi, 0xffffffff
jmp 0x40352a
mov edx, dword [esi + 0x44]
mov dword [esi], edx
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov edi, ecx
mov dword [esi], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40353b
mov dword [esp + 0x14], 0xffffffff
jmp 0x4035a0
mov eax, dword [esi + 4]
test eax, eax
jne 0x40358c
call fcn.0040b18a
mov dword [eax], 0
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
push edx
push 0x4000
push ebx
push eax
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403587
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [ecx + 0xc], 0x20
je 0x40357d
mov dword [esi + 0x38], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
jmp 0x4035a0
mov edx, dword [esi + 0x44]
mov dword [esi], edx
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esi], eax
cmp edi, 8
jne 0x4037ed
test byte [esp + 0x14], 0xe0
jne 0x4037ed
mov edi, 6
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x403615
mov eax, dword [esi + 4]
test eax, eax
jne 0x403609
call fcn.0040b18a
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push ebx
push ecx
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403604
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [edx + 0xc], 0x20
je 0x403615
mov dword [esi + 0x38], 0xffffffff
jmp 0x403615
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
dec ecx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
dec edi
jne 0x4035b9
test byte [esp + 0x14], 4
je 0x403777
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40362f
or edi, 0xffffffff
jmp 0x40368d
mov eax, dword [esi + 4]
test eax, eax
jne 0x40367b
call fcn.0040b18a
mov dword [eax], 0
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
push ecx
push 0x4000
push ebx
push edx
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403676
mov eax, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [eax + 0xc], 0x20
je 0x403671
mov dword [esi + 0x38], 0xffffffff
or edi, 0xffffffff
jmp 0x40368d
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov eax, dword [esi + 4]
xor edx, edx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov edi, edx
mov dword [esi], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403699
or eax, 0xffffffff
jmp 0x4036f5
mov eax, dword [esi + 4]
test eax, eax
jne 0x4036e5
call fcn.0040b18a
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push ebx
push ecx
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4036e0
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [edx + 0xc], 0x20
je 0x4036db
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x4036f5
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
dec eax
mov dword [esi + 4], eax
xor eax, eax
mov al, byte [ecx]
inc ecx
mov dword [esi], ecx
shl eax, 8
add eax, edi
mov edi, eax
mov ecx, edi
dec edi
test ecx, ecx
je 0x403777
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40370f
or ecx, 0xffffffff
jmp 0x40376b
mov eax, dword [esi + 4]
test eax, eax
jne 0x40375b
call fcn.0040b18a
mov dword [eax], 0
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
push edx
push 0x4000
push ebx
push eax
call fcn.0040b682
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x403756
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x3c], ebx
test byte [ecx + 0xc], 0x20
je 0x403751
mov dword [esi + 0x38], 0xffffffff
or ecx, 0xffffffff
jmp 0x40376b
mov edx, dword [esi + 0x44]
mov dword [esi], edx
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
cmp ecx, 0xffffffff
je 0x403777
mov eax, edi
dec edi
test eax, eax
jne 0x403703
test byte [esp + 0x14], 8
je 0x40379d
push esi
call fcn.00403830
add esp, 4
test eax, eax
je 0x40379d
cmp eax, 0xffffffff
je 0x40379d
push esi
call fcn.00403830
add esp, 4
test eax, eax
jne 0x40378b
test byte [esp + 0x14], 0x10
je 0x4037c3
push esi
call fcn.00403830
add esp, 4
test eax, eax
je 0x4037c3
cmp eax, 0xffffffff
je 0x4037c3
push esi
call fcn.00403830
add esp, 4
test eax, eax
jne 0x4037b1
test byte [esp + 0x14], 2
je 0x4037db
mov edi, 2
push esi
call fcn.00403830
add esp, 4
dec edi
jne 0x4037cf
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
mov dword [esi + 0x38], ecx
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x38], 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
ret
test ebp, ebp
je 0x403809
mov edx, dword [esi + 4]
mov ecx, dword [esi]
inc edx
dec ecx
mov dword [esi + 4], edx
mov dword [esi], ecx
cmp eax, 0xffffffff
je 0x40381d
mov ecx, dword [esi + 4]
mov eax, dword [esi]
inc ecx
dec eax
mov dword [esi + 4], ecx
mov dword [esi], eax
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x38], ecx
pop edi
pop esi
pop ebp
pop ebx
ret