Function at 0x435880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bbad3
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ed310]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed310]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [esp + 0x5c], ax
mov edi, 7
mov eax, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], 0
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4358e0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.00401bf0
xor esi, esi
mov dword [esp + 0x88], esi
push 0xffffffffffffffff
xor ecx, ecx
push esi
lea edx, [esp + 0x64]
mov word [esp + 0x48], cx
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], esi
call fcn.00401780
mov byte [esp + 0x88], 2
cmp dword [esp + 0x70], 8
jb 0x435947
mov eax, dword [esp + 0x5c]
push eax
call fcn.0049855c
add esp, 4
xor ecx, ecx
mov word [esp + 0x5c], cx
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], esi
call fcn.00434900
test al, al
mov eax, dword [esp + 0x3c]
jne 0x43599f
cmp eax, 0xffffffff
je 0x435981
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x435981
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x435995
mov edx, dword [esp + 0x40]
push edx
call fcn.0049855c
add esp, 4
mov eax, 3
jmp 0x435daa
mov dword [esp + 0x38], esi
cmp eax, 0xffffffff
je 0x4359ee
push esi
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4359d1
mov eax, dword [esp + 0x10]
xor ecx, ecx
and eax, ecx
cmp eax, 0xffffffff
jne 0x435a0c
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x4359ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x4359ee
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x435995
mov eax, dword [esp + 0x40]
push eax
call fcn.0049855c
add esp, 4
mov eax, 3
jmp 0x435daa
movzx eax, word [esp + 0x38]
cmp eax, 0xefeff
jg 0x435a7d
je 0x435d9c
cmp eax, 0xfffe0000
je 0x435d9c
cmp eax, 0xfeff
jne 0x435a88
mov ecx, dword [ebx + 0x818]
call fcn.00434ef0
mov edi, dword [ebx + 0x818]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], edi
mov dword [ebx + 0x81c], edi
call fcn.004349f0
mov ecx, eax
or ecx, edx
mov dword [ebx + 0x810], eax
mov dword [ebx + 0x814], edx
mov dword [esp + 0x10], esi
jne 0x435ab4
lea ecx, [esp + 0x3c]
call fcn.004022c0
mov eax, 1
jmp 0x435daa
cmp eax, 0xefbbbf
je 0x435d9c
push 1
push esi
push esi
lea ecx, [esp + 0x48]
call fcn.00434970
and eax, edx
cmp eax, 0xffffffff
jne 0x435a30
lea ecx, [esp + 0x3c]
call fcn.004022c0
mov eax, 3
jmp 0x435daa
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
mov esi, ebx
call fcn.004351d0
test al, al
je 0x435a6a
mov eax, dword [esp + 0x14]
cmp ax, 0x3c
jne 0x435d29
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004351d0
test al, al
je 0x435a6a
mov eax, dword [esp + 0x14]
cmp ax, 0x2f
jne 0x435c2a
mov ebx, 0x80
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0
neg ecx
or ecx, eax
push ecx
call fcn.00497a23
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x90], 3
call fcn.004351d0
test al, al
je 0x435d6a
cmp word [esp + 0x14], 0x3e
je 0x435bcd
cmp dword [esp + 0x34], ebx
jb 0x435b9c
add ebx, ebx
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x30], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00497a23
mov esi, eax
add esp, 4
mov eax, ebx
shr eax, 1
push eax
push edi
push esi
call fcn.00499e17
add esp, 0xc
push edi
call fcn.004996ce
mov edi, esi
add esp, 4
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x34]
mov cx, word [esp + 0x14]
mov esi, dword [esp + 0x24]
mov word [edi + eax*2], cx
inc eax
lea edx, [esp + 0x14]
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004351d0
test al, al
je 0x435bcd
cmp word [esp + 0x14], 0x3e
jne 0x435b55
push 0
lea esi, [esp + 0x30]
call fcn.00434aa0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x435d83
cmp dword [esp + 0x10], eax
je 0x435c09
push eax
lea esi, [edi + 0xc]
call fcn.00434aa0
mov dword [esp + 0x10], 0
mov ecx, dword [edi + 0x3c]
push ebx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x8c], 2
call fcn.004996ce
mov ebx, dword [esp + 0x28]
add esp, 4
jmp 0x435d48
cmp ax, 0x3f
jne 0x435c85
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
mov esi, ebx
call fcn.004351d0
test al, al
je 0x435a6a
mov edi, 0x3e
cmp word [esp + 0x20], di
je 0x435d48
lea esp, [esp]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
mov esi, ebx
call fcn.004351d0
test al, al
je 0x435d48
cmp word [esp + 0x20], di
jne 0x435c60
jmp 0x435d48
mov eax, dword [ebx + 0x808]
xor edi, edi
cmp eax, edi
jbe 0x435ca5
add dword [ebx + 0x810], 2
adc dword [ebx + 0x814], edi
dec eax
mov dword [ebx + 0x808], eax
cmp dword [esp + 0x10], edi
je 0x435cbc
mov esi, dword [esp + 0x18]
push edi
add esi, 0xc
call fcn.00434aa0
mov dword [esp + 0x10], edi
push 0x40
call fcn.0049964e
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x88], 4
cmp eax, edi
je 0x435cde
push eax
call fcn.00434d90
jmp 0x435ce0
xor eax, eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x8c], 2
push ebx
mov edi, eax
mov dword [esp + 0x30], eax
mov dword [eax + 0x3c], ecx
call fcn.00435780
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x18]
test eax, eax
je 0x435d18
lea edi, [eax + 0x2c]
lea eax, [esp + 0x28]
call fcn.00437500
cmp byte [esp + 0x1f], 0
je 0x435d48
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
jmp 0x435d48
cmp ax, 9
je 0x435d48
cmp ax, 0xa
je 0x435d48
cmp ax, 0xd
je 0x435d48
push eax
lea esi, [edi + 0xc]
call fcn.00434aa0
inc dword [esp + 0x10]
mov ecx, dword [ebx + 0x810]
or ecx, dword [ebx + 0x814]
jne 0x435ab0
lea ecx, [esp + 0x3c]
call fcn.004022c0
mov eax, 1
jmp 0x435daa
push edi
call fcn.004996ce
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004022c0
mov eax, 1
jmp 0x435daa
push ebx
call fcn.004996ce
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004022c0
mov eax, 2
jmp 0x435daa
lea ecx, [esp + 0x3c]
call fcn.004022c0
mov eax, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00499155
mov esp, ebp
pop ebp
ret 4