Function at 0x45ae30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498811
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x4b0f34]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0f34]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov eax, dword [0x4b6ffc]
push 0x4a7bd8
push eax
call fcn.00480690
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
je 0x45b138
push 2
push ebx
push ebx
push edi
call fcn.0048073c
push edi
call fcn.0048093f
push ebx
push ebx
push ebx
push edi
mov dword [0x4b7008], eax
mov dword [0x4b700c], edx
call fcn.0048073c
mov edx, dword [0x4b6ffc]
mov eax, edx
add esp, 0x24
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x45aec1
sub eax, esi
movsx ecx, byte [eax + edx - 1]
push ecx
call fcn.0047fbe1
add esp, 4
cmp eax, 0x65
jne 0x45afa0
mov edx, dword [0x4b6ffc]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x45aef0
sub eax, esi
movsx edx, byte [eax + edx - 2]
push edx
call fcn.0047fbe1
add esp, 4
cmp eax, 0x78
jne 0x45afa0
mov edx, dword [0x4b6ffc]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x45af20
sub eax, esi
movsx eax, byte [eax + edx - 3]
push eax
call fcn.0047fbe1
add esp, 4
cmp eax, 0x65
jne 0x45afa0
push edi
xor esi, esi
call fcn.00480989
add esp, 4
test eax, eax
jne 0x45af99
lea ecx, [ecx]
push edi
push 0x800
lea ecx, [esp + 0x6c]
push 1
push ecx
call fcn.004800db
add esp, 0x10
mov cl, 0x4b
xor eax, eax
lea esp, [esp]
cmp cl, byte [esp + eax + 0x64]
jne 0x45b077
mov cl, byte [eax + 0x4a7bdd]
add eax, 1
test cl, cl
jne 0x45af70
mov eax, esi
shl eax, 0xb
cdq
push ebx
push edx
push eax
push edi
call fcn.0048073c
add esp, 0x10
mov byte [0x4b6fd9], 1
lea ecx, [esp + 0x48]
call fcn.00406a80
mov dword [esp + 0x878], ebx
push 8
mov edi, 0xf
push str.KGB_arch
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
call fcn.0045f9e0
mov byte [esp + 0x878], 1
mov ecx, dword [esp + 0x24]
lea esi, [esp + 0x2c]
lea edx, [esp + 0x48]
call fcn.0045f070
mov edx, eax
mov byte [esp + 0x878], 2
call fcn.0045f0a0
test eax, eax
setne bl
mov byte [esp + 0x878], 1
cmp dword [esp + 0x44], 0x10
jb 0x45b01b
mov edx, dword [esp + 0x30]
push edx
call fcn.00470055
add esp, 4
xor esi, esi
mov byte [esp + 0x878], 0
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
jb 0x45b046
mov eax, dword [esp + 0x14]
push eax
call fcn.00470055
add esp, 4
test bl, bl
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov byte [esp + 0x14], 0
je 0x45b0ac
mov dword [esp + 0x878], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x45b138
mov ecx, dword [esp + 0x4c]
push ecx
jmp 0x45b130
mov cl, 0x45
xor eax, eax
jmp 0x45b080
cmp cl, byte [esp + eax + 0x64]
jne 0x45b093
mov cl, byte [eax + 0x4a7be9]
add eax, 1
test cl, cl
jne 0x45b080
push edi
add esi, 1
call fcn.00480989
add esp, 4
test eax, eax
je 0x45af50
jmp 0x45af99
mov eax, dword [esp + 0x5c]
cmp eax, 2
jbe 0x45b119
lea esi, [eax - 2]
cmp esi, eax
jbe 0x45b0c5
call fcn.0047f320
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x60], 0x10
mov ecx, dword [esp + 0x4c]
jae 0x45b0d4
lea ecx, [esp + 0x4c]
cmp byte [ecx + esi], 0x2d
jne 0x45b119
lea edi, [eax - 1]
cmp edi, eax
jbe 0x45b0e6
call fcn.0047f320
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x45b0f5
lea eax, [esp + 0x4c]
movsx eax, byte [eax + edi]
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x45b119
lea ecx, [esp + 0x48]
mov dword [esp + 0x878], 0xffffffff
call fcn.0045f040
mov eax, esi
jmp 0x45b13a
mov dword [esp + 0x878], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x45b138
mov edx, dword [esp + 0x4c]
push edx
call fcn.00470055
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.0047ec3c
mov esp, ebp
pop ebp
ret