Function at 0x45c8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x4772d4]
xor eax, ebp
mov dword [ebp + 0x128], eax
mov eax, dword [0x47bffc]
push ebx
push esi
push edi
push 0
push 0x47e8a8
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], eax
call fcn.00460770
mov ebx, dword [ebp - 0x78]
add esp, 8
test eax, eax
je 0x45c916
push ebx
mov dword [0x47a96c], 0
call fcn.00409d93
push 0
push 0
push ebx
call fcn.0040c057
push 0xe8
call fcn.0045afc0
add esp, 0x14
mov esi, dword [0x47bf80]
xor ecx, ecx
xor edx, edx
mov edi, 2
mov dword [0x47e8e8], 0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x7c], 0xffffffff
test esi, esi
je 0x45ca6c
lea ebx, [ebx]
mov al, byte [esi + 0x39]
xor edi, edi
cmp al, 9
jne 0x45c9c1
movzx eax, word [esi + 0x3a]
test al, 0x20
je 0x45c973
test al, 2
je 0x45c973
cmp dword [esi + 0x30], edi
jl 0x45c973
mov edx, dword [ebp - 0x74]
inc edx
mov dword [ebp - 0x74], edx
mov edi, edx
test al, 0x10
je 0x45c981
test al, 1
je 0x45c981
inc ecx
mov dword [ebp - 0x64], ecx
mov edi, ecx
lea eax, [esi + 0xc]
mov ecx, str.main
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45c9b0
test dl, dl
je 0x45c9ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c9b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c990
xor eax, eax
jmp 0x45c9b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45c9d1
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x7c], eax
jmp 0x45c9d1
cmp al, 1
jne 0x45c9d1
test byte [esi + 0x3a], 0x10
je 0x45c9d1
inc edx
mov dword [ebp - 0x54], edx
mov edi, edx
test edi, edi
je 0x45ca59
test byte [esi + 0x3a], 0x20
je 0x45ca20
lea edx, [esi + 0xc]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c9e7
sub ecx, edi
push ecx
mov ecx, dword [0x47bf4c]
call fcn.0045f710
mov edi, eax
add esp, 4
test edi, edi
je 0x45ca20
mov ecx, dword [edi + 8]
lea edx, [ebp + 0xe8]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x45ca10
test edi, edi
jne 0x45ca3c
lea ecx, [esi + 0xc]
lea edx, [ebp + 0xe8]
sub edx, ecx
jmp 0x45ca30
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x45ca30
lea ecx, [ebp + 0xe8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ca45
mov edi, dword [ebp - 0x60]
sub ecx, edx
inc edi
add edi, ecx
mov dword [ebp - 0x60], edi
jmp 0x45ca5c
mov edi, dword [ebp - 0x60]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x54]
test esi, esi
jne 0x45c950
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [0x47a964], eax
je 0x45caa8
mov edx, dword [0x47d090]
test edx, edx
je 0x45caa8
cmp dword [edx + 0x24], 0
jle 0x45caa2
lea ecx, [edx + 4]
inc eax
mov dword [ebp - 0x60], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ca93
mov eax, dword [ebp - 0x60]
sub ecx, esi
inc edi
add edi, ecx
mov edx, dword [edx]
test edx, edx
jne 0x45ca83
mov edx, dword [0x47d270]
xor esi, esi
test edx, edx
je 0x45cadc
test dword [edx + 0x24], 0x80000000
je 0x45cad6
inc esi
lea ecx, [edx + 4]
mov dword [ebp - 0x70], esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cac7
sub ecx, esi
mov esi, dword [ebp - 0x70]
inc edi
add edi, ecx
mov edx, dword [edx]
test edx, edx
jne 0x45cab4
mov ecx, dword [0x47a970]
xor edx, edx
lea eax, [edi + 0x38]
div ecx
mov eax, ecx
push 0x38
sub eax, edx
xor edx, edx
cmp eax, ecx
cmove eax, edx
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.00413920
mov ecx, dword [0x47a85c]
add esp, 0xc
cmp dword [0x47a978], 1
mov eax, 0xf1e0
mov word [ebp - 0x4c], ax
setg al
add al, 8
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x49], al
mov eax, ecx
and eax, 2
cmp dword [0x47a96c], 0
mov word [ebp - 0x48], ax
je 0x45cb41
or ax, 4
mov word [ebp - 0x48], ax
test ecx, ecx
jne 0x45cb4d
or ax, 0x10
mov word [ebp - 0x48], ax
test byte [0x47c034], 1
je 0x45cb5e
or ax, 8
mov word [ebp - 0x48], ax
mov ecx, dword [ebp - 0x74]
mov eax, 8
mov word [ebp - 0x46], ax
mov eax, dword [ebp - 0x64]
push ebx
lea eax, [eax*8 + 0x38]
mov dword [ebp - 0x2c], eax
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x28], eax
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
lea eax, [eax + esi*8]
add ecx, eax
add ecx, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [0x47c04c]
mov dword [ebp - 0x44], ecx
add ecx, dword [0x47d0fc]
push 0x38
mov dword [ebp - 0x40], ecx
lea ecx, [ecx + eax*4]
mov eax, dword [0x47a974]
push 1
lea eax, [ecx + eax*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x30], 0x38
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], ecx
call fcn.0040b5a4
mov esi, 0x38
add esp, 0x10
mov byte [ebp - 0x59], 0
cmp dword [ebp - 0x44], esi
jle 0x45cc07
lea ecx, [ecx]
push ebx
push 1
lea eax, [ebp - 0x59]
push 1
push eax
call fcn.0040b5a4
inc esi
add esp, 0x10
cmp esi, dword [ebp - 0x44]
jl 0x45cbf0
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x47bf80]
add edi, 2
xor ecx, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45ccd6
cmp byte [eax + 0x39], 9
jne 0x45ccc6
movzx edx, word [eax + 0x3a]
test dl, 0x10
je 0x45ccc6
test dl, 1
je 0x45ccc6
mov eax, dword [eax + 0x30]
movsx ecx, cx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x30]
push ebx
mov dword [ebp - 0x68], edi
lea esi, [eax + ecx*8]
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b5a4
push ebx
call fcn.00409d93
push 0
push edi
push ebx
call fcn.0040c057
mov esi, dword [ebp - 0x54]
add esp, 0x30
add esi, 0xc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cc91
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b5a4
add esp, 0x10
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x45ccb0
mov eax, dword [ebp - 0x54]
sub esi, ecx
mov ecx, dword [ebp - 0x58]
inc edi
add edi, esi
inc ecx
mov dword [ebp - 0x58], ecx
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x45cc25
mov dword [ebp - 0x64], edi
mov esi, dword [ebp - 0x74]
test esi, esi
jle 0x45ce58
lea eax, [esi*4]
push eax
call fcn.0040871a
mov edx, eax
add esp, 4
mov dword [ebp - 0x54], edx
test edx, edx
jne 0x45cd07
push 0x67
call fcn.0045afc0
mov edx, dword [ebp - 0x54]
add esp, 4
mov ecx, dword [0x47bf80]
test ecx, ecx
je 0x45cd33
cmp byte [ecx + 0x39], 9
jne 0x45cd2d
movzx eax, word [ecx + 0x3a]
test al, 0x20
je 0x45cd2d
test al, 2
je 0x45cd2d
mov eax, dword [ecx + 0x30]
test eax, eax
js 0x45cd2d
mov dword [edx + eax*4], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x45cd11
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], eax
test esi, esi
jle 0x45ce4d
mov esi, dword [edx + eax*4]
add esi, 0xc
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x45cd52
mov edi, dword [0x47bf4c]
sub ebx, ecx
xor ecx, ecx
test edi, edi
je 0x45cd98
test ecx, ecx
jg 0x45cd98
mov edx, dword [edi + 4]
movsx eax, byte [esi]
movsx ecx, byte [edx]
sub ecx, eax
jne 0x45cd92
cmp ebx, dword [edi + 0xc]
jne 0x45cd92
push ebx
push esi
push edx
call fcn.004095a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x45d1b3
mov edi, dword [edi]
test edi, edi
jne 0x45cd67
lea ecx, [ebp + 0x108]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x45cda0
movsx ecx, word [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x64]
push ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], edi
lea esi, [eax + ecx*8]
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b5a4
push ebx
call fcn.00409d93
push 0
push edi
push ebx
call fcn.0040c057
lea ecx, [ebp + 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ce00
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x108]
push 1
push eax
call fcn.0040b5a4
lea ecx, [ebp + 0x108]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ce28
mov eax, dword [ebp - 0x7c]
inc dword [ebp - 0x58]
sub ecx, edx
mov edx, dword [ebp - 0x54]
inc edi
inc eax
add edi, ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x74]
jl 0x45cd47
push dword [ebp - 0x54]
call fcn.004086e2
add esp, 4
cmp dword [0x47a964], 0
je 0x45cf16
mov eax, dword [0x47d090]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45cf16
lea ebx, [ebx]
cmp dword [eax + 0x24], 0
jle 0x45cf09
mov eax, dword [ebp - 0x28]
movsx ecx, cx
push ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], edi
lea esi, [eax + ecx*8]
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b5a4
push ebx
call fcn.00409d93
push 0
push edi
push ebx
call fcn.0040c057
mov esi, dword [ebp - 0x54]
add esp, 0x30
add esi, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45ced7
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b5a4
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45cef3
mov eax, dword [ebp - 0x54]
sub esi, ecx
mov ecx, dword [ebp - 0x58]
inc edi
add edi, esi
inc ecx
mov dword [ebp - 0x58], ecx
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x45ce80
mov eax, dword [0x47bf80]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45cfd3
jmp 0x45cf30
cmp byte [eax + 0x39], 1
jne 0x45cfc6
test byte [eax + 0x3a], 0x10
je 0x45cfc6
mov eax, dword [eax + 0x30]
movsx ecx, cx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x24]
push ebx
mov dword [ebp - 0x68], edi
lea esi, [eax + ecx*8]
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b5a4
push ebx
call fcn.00409d93
push 0
push edi
push ebx
call fcn.0040c057
mov esi, dword [ebp - 0x54]
add esp, 0x30
add esi, 0xc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cf90
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b5a4
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x45cfb0
mov eax, dword [ebp - 0x54]
sub esi, ecx
mov ecx, dword [ebp - 0x58]
inc edi
add edi, esi
inc ecx
mov dword [ebp - 0x58], ecx
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x45cf30
mov eax, dword [0x47d270]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45d093
jmp 0x45cff0
mov edx, dword [eax + 0x24]
test edx, edx
jns 0x45d086
mov eax, dword [ebp - 0x20]
movsx ecx, cx
and edx, 0x7fffffff
push ebx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edi
lea esi, [eax + ecx*8]
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b5a4
push ebx
call fcn.00409d93
push 0
push edi
push ebx
call fcn.0040c057
mov esi, dword [ebp - 0x54]
add esp, 0x30
add esi, 4
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d050
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b5a4
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x45d070
mov eax, dword [ebp - 0x54]
sub esi, ecx
mov ecx, dword [ebp - 0x58]
inc edi
add edi, esi
inc ecx
mov dword [ebp - 0x58], ecx
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x45cff0
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
push ebx
push 2
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x58], 0x1f
call fcn.0040b5a4
mov esi, dword [ebp - 0x44]
push ebx
call fcn.00409d93
push 0
push esi
push ebx
call fcn.0040c057
mov eax, dword [0x47d108]
add esp, 0x30
mov dword [0x47e8a4], 0
test eax, eax
jle 0x45d27c
shl eax, 2
push eax
call fcn.0040871a
add esp, 4
mov dword [0x47e8a4], eax
test eax, eax
jne 0x45d105
push 0x67
call fcn.0045afc0
add esp, 4
mov edi, dword [ebp - 0x80]
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov dword [0x47e8f4], 0
test eax, eax
je 0x45d121
cmovs ecx, eax
mov dword [edi + 8], ecx
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d5a0
add esp, 4
test eax, eax
je 0x45d27f
lea eax, [ebp - 0x18]
push 0x3b
push eax
call fcn.00409b60
add esp, 8
test eax, eax
je 0x45d14e
mov word [eax], 0xa
movsx eax, byte [ebp - 0x18]
push eax
lea edi, [ebp - 0x18]
call fcn.0040ae05
add esp, 4
test eax, eax
je 0x45d174
movsx eax, byte [edi + 1]
inc edi
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
jne 0x45d162
mov al, byte [edi]
test al, al
je 0x45d261
movsx eax, al
push eax
call fcn.0040c3df
add esp, 4
cmp eax, 0x6c
jne 0x45d1d3
cmp byte [edi + 1], 0x2e
jne 0x45d1d3
lea ecx, [edi + 2]
xor edx, edx
call fcn.0045c830
mov edx, dword [0x47e8a4]
mov ecx, dword [0x47e8f4]
mov dword [edx + eax*4], ecx
jmp 0x45d261
mov ecx, dword [edi + 8]
lea edx, [ebp + 0x108]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
lea ecx, [ecx + 1]
lea edx, [edx + 1]
test al, al
jne 0x45d1c0
jmp 0x45cdac
cmp byte [edi], 0
mov esi, edi
je 0x45d1f5
lea ebx, [ebx]
movsx eax, byte [esi]
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
jne 0x45d1f5
inc esi
cmp byte [esi], al
jne 0x45d1e0
mov edx, esi
sub edx, edi
mov ecx, edi
call fcn.0045bd60
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x47970c], 0
jne 0x45d21c
push edi
push 0x68
mov byte [esi], 0
call fcn.0045afc0
add esp, 8
cmp dword [ebx + 0x479710], 1
jne 0x45d261
movsx eax, byte [esi]
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
je 0x45d247
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
jne 0x45d235
push dword [ebx + 0x479708]
mov eax, dword [ebx + 0x479714]
push esi
push 0
call eax
add esp, 0xc
add dword [0x47e8f4], eax
mov edi, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d5a0
add esp, 4
test eax, eax
jne 0x45d137
jmp 0x45d27f
mov edi, dword [ebp - 0x80]
mov ebx, 1
mov dword [0x47e8ec], 0
mov dword [0x47e8f0], 0
mov dword [ebp - 0x54], ebx
jmp 0x45d2a0
mov eax, dword [edi + 0xc]
xor ecx, ecx
test eax, eax
je 0x45d2af
cmovs ecx, eax
mov dword [edi + 8], ecx
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d5a0
add esp, 4
test eax, eax
je 0x45d405
lea eax, [ebp - 0x18]
push 0x3b
push eax
call fcn.00409b60
add esp, 8
test eax, eax
je 0x45d2dc
mov word [eax], 0xa
movsx eax, byte [ebp - 0x18]
push eax
lea edi, [ebp - 0x18]
call fcn.0040ae05
add esp, 4
test eax, eax
je 0x45d302
movsx eax, byte [edi + 1]
inc edi
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
jne 0x45d2f0
mov al, byte [edi]
test al, al
je 0x45d3e9
movsx eax, al
push eax
call fcn.0040c3df
add esp, 4
cmp eax, 0x6c
jne 0x45d327
cmp byte [edi + 1], 0x2e
je 0x45d3e9
cmp byte [edi], 0
mov esi, edi
je 0x45d345
mov edi, edi
movsx eax, byte [esi]
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
jne 0x45d345
inc esi
cmp byte [esi], al
jne 0x45d330
mov edx, esi
sub edx, edi
mov ecx, edi
call fcn.0045bd60
mov ebx, eax
shl ebx, 4
mov dword [ebp - 0x70], ebx
cmp dword [ebx + 0x47970c], 0
jne 0x45d3a7
cmp byte [edi], 0
je 0x45d39c
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x45d370
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d370
sub ecx, edx
lea ebx, [ecx - 1]
lea esp, [esp]
movsx eax, byte [ebx + edi]
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
je 0x45d394
dec ebx
jmp 0x45d380
mov byte [ebx + edi + 1], 0
mov ebx, dword [ebp - 0x70]
push edi
push 0x68
call fcn.0045afc0
add esp, 8
mov eax, dword [ebp - 0x54]
cmp dword [ebx + 0x479710], eax
jne 0x45d3e9
movsx eax, byte [esi]
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
je 0x45d3d4
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.0040ae05
add esp, 4
test eax, eax
jne 0x45d3c2
push dword [ebx + 0x479708]
mov eax, dword [ebx + 0x479714]
push esi
push dword [ebp - 0x78]
call eax
add esp, 0xc
mov edi, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d5a0
add esp, 4
test eax, eax
jne 0x45d2c5
mov ebx, dword [ebp - 0x54]
inc ebx
mov dword [ebp - 0x54], ebx
cmp ebx, 2
jle 0x45d2a0
mov eax, dword [0x47e8f0]
sub eax, dword [0x47e8ec]
test eax, eax
jle 0x45d42b
push 0x6a
call fcn.0045afc0
add esp, 4
mov eax, dword [0x47e8a4]
test eax, eax
je 0x45d43d
push eax
call fcn.004086e2
add esp, 4
cmp dword [0x47a96c], 0
mov ebx, dword [ebp - 0x78]
je 0x45d455
push ebx
call fcn.0040bc2e
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [0x47e8e8]
test eax, eax
jne 0x45d477
test byte [0x47a85c], 2
je 0x45d473
mov ecx, ebx
call fcn.0045b3c0
mov eax, dword [0x47e8e8]
test eax, eax
je 0x45d486
push str.disk_full
push 0x65
call fcn.0045afc0
add esp, 8
mov esi, dword [ebp - 0x44]
push ebx
call fcn.00409d93
push 0
push 0
push ebx
call fcn.0040c057
push ebx
push 0x38
lea eax, [ebp - 0x50]
push 1
push eax
call fcn.0040b5a4
mov ecx, dword [ebp + 0x128]
add esp, 0x20
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004086d3
lea esp, [ebp + 0x12c]
pop ebp
ret