Function at 0x45a3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4988dc
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x4b0f34]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0f34]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov esi, ecx
push 0x4a7bd8
push esi
call fcn.00480690
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x45a82b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x45a403
sub eax, edx
movsx eax, byte [esi + eax - 1]
push eax
call fcn.0047fbe1
add esp, 4
cmp eax, 0x65
jne 0x45a4d1
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x45a430
sub eax, edx
movsx ecx, byte [esi + eax - 2]
push ecx
call fcn.0047fbe1
add esp, 4
cmp eax, 0x78
jne 0x45a4d1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x45a457
sub eax, edx
movsx edx, byte [esi + eax - 3]
push edx
call fcn.0047fbe1
add esp, 4
cmp eax, 0x65
jne 0x45a4d1
push edi
xor esi, esi
call fcn.00480989
add esp, 4
test eax, eax
jne 0x45a4ca
push edi
push 0x800
lea eax, [esp + 0x7c]
push 1
push eax
call fcn.004800db
add esp, 0x10
mov cl, 0x4b
xor eax, eax
lea ecx, [ecx]
cmp cl, byte [esp + eax + 0x74]
jne 0x45a5a4
mov cl, byte [eax + 0x4a7bdd]
add eax, 1
test cl, cl
jne 0x45a4a0
mov eax, esi
shl eax, 0xb
cdq
push 0
push edx
push eax
push edi
call fcn.0048073c
add esp, 0x10
mov byte [0x4b6fd9], 1
lea ecx, [esp + 0x58]
call fcn.00406a80
xor eax, eax
mov dword [esp + 0x888], eax
push 8
push str.KGB_arch
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], eax
mov byte [esp + 0x48], al
call fcn.0045f9e0
mov byte [esp + 0x888], 1
mov ecx, dword [esp + 0x50]
lea esi, [esp + 0x18]
lea edx, [esp + 0x58]
call fcn.0045f070
mov edx, eax
mov byte [esp + 0x888], 2
call fcn.0045f0a0
test eax, eax
setne bl
mov byte [esp + 0x888], 1
cmp dword [esp + 0x30], 0x10
jb 0x45a54c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00470055
add esp, 4
mov edi, 0x10
mov byte [esp + 0x888], 0
cmp dword [esp + 0x54], edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x45a581
mov edx, dword [esp + 0x40]
push edx
call fcn.00470055
add esp, 4
test bl, bl
je 0x45a5d4
mov dword [esp + 0x888], 0xffffffff
cmp dword [esp + 0x70], edi
jb 0x45a82b
mov eax, dword [esp + 0x5c]
push eax
jmp 0x45a823
mov cl, 0x45
xor eax, eax
cmp cl, byte [esp + eax + 0x74]
jne 0x45a5bb
mov cl, byte [eax + 0x4a7be9]
add eax, 1
test cl, cl
jne 0x45a5a8
push edi
add esi, 1
call fcn.00480989
add esp, 4
test eax, eax
je 0x45a484
jmp 0x45a4ca
mov eax, dword [esp + 0x6c]
cmp eax, 2
jbe 0x45a642
lea esi, [eax - 2]
cmp esi, eax
jbe 0x45a5ed
call fcn.0047f320
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x70], edi
mov ecx, dword [esp + 0x5c]
jae 0x45a5fb
lea ecx, [esp + 0x5c]
cmp byte [ecx + esi], 0x2d
jne 0x45a642
lea esi, [eax - 1]
cmp esi, eax
jbe 0x45a60d
call fcn.0047f320
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x45a61b
lea eax, [esp + 0x5c]
movsx eax, byte [eax + esi]
cmp eax, 0x30
jl 0x45a629
cmp eax, 0x39
jle 0x45a642
lea ecx, [esp + 0x58]
mov dword [esp + 0x888], 0xffffffff
call fcn.0045f040
jmp 0x45a82b
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.00406a80
mov edx, dword [esp + 0x50]
cmp edx, 1
jbe 0x45a789
lea esp, [esp]
mov edi, dword [esp + 0x54]
cmp edi, 0x10
mov ecx, dword [esp + 0x40]
mov eax, ecx
jae 0x45a673
lea eax, [esp + 0x40]
lea ebx, [eax + edx]
test ebx, ebx
je 0x45a69a
cmp edi, 0x10
mov eax, ecx
jae 0x45a685
lea eax, [esp + 0x40]
cmp eax, ebx
ja 0x45a69a
cmp edi, 0x10
mov eax, ecx
jae 0x45a694
lea eax, [esp + 0x40]
add eax, edx
cmp ebx, eax
jbe 0x45a6ab
call fcn.0047f320
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
cmp edi, 0x10
jb 0x45a804
test ecx, ecx
mov esi, ecx
je 0x45a6da
cmp edi, 0x10
mov eax, ecx
jae 0x45a6c5
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x45a6da
cmp edi, 0x10
mov eax, ecx
jae 0x45a6d4
lea eax, [esp + 0x40]
add eax, edx
cmp esi, eax
jbe 0x45a6eb
call fcn.0047f320
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
cmp esi, ebx
mov dword [esp + 0x38], esi
mov eax, esi
je 0x45a701
cmp byte [eax], 9
je 0x45a701
add eax, 1
cmp eax, ebx
jne 0x45a6f5
cmp edi, 0x10
mov eax, ecx
jae 0x45a70c
lea eax, [esp + 0x40]
add eax, edx
je 0x45a730
cmp edi, 0x10
jae 0x45a719
lea ecx, [esp + 0x40]
cmp ecx, eax
ja 0x45a730
cmp edi, 0x10
mov ecx, dword [esp + 0x40]
jae 0x45a72a
lea ecx, [esp + 0x40]
add ecx, edx
cmp eax, ecx
jbe 0x45a739
call fcn.0047f320
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x3c]
cmp eax, 0xfffffffe
je 0x45a755
test eax, eax
je 0x45a74c
mov ecx, eax
cmp eax, ecx
je 0x45a755
call fcn.0047f320
mov edi, dword [esp + 0x54]
cmp edi, 0x10
mov byte [esp + 0x888], 0
jb 0x45a76f
mov edx, dword [esp + 0x40]
push edx
call fcn.00470055
add esp, 4
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.00406a80
mov edx, dword [esp + 0x50]
cmp edx, 1
ja 0x45a660
mov esi, 0x10
mov byte [esp + 0x888], 0
cmp dword [esp + 0x54], esi
jb 0x45a7a9
mov eax, dword [esp + 0x40]
push eax
call fcn.00470055
add esp, 4
push edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.0047fc08
add esp, 4
cmp eax, 0xc
jne 0x45a80d
push edi
call fcn.0047fc08
add esp, 4
test eax, eax
jne 0x45a80d
push edi
call fcn.00480c6a
add esp, 4
mov dword [esp + 0x888], 0xffffffff
cmp dword [esp + 0x70], esi
jb 0x45a800
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00470055
add esp, 4
mov al, 1
jmp 0x45a82d
lea esi, [esp + 0x40]
jmp 0x45a6ba
mov dword [esp + 0x888], 0xffffffff
cmp dword [esp + 0x70], esi
jb 0x45a82b
mov edx, dword [esp + 0x5c]
push edx
call fcn.00470055
add esp, 4
xor al, al
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.0047ec3c
mov esp, ebp
pop ebp
ret