Function at 0x45c160
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x4762d4]
xor eax, ebp
mov dword [ebp + 0x128], eax
mov eax, dword [0x47aff0]
push ebx
push esi
push edi
push 0
push 0x47d8a0
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], eax
call fcn.00460010
mov ebx, dword [ebp - 0x78]
add esp, 8
test eax, eax
je 0x45c1c6
push ebx
mov dword [0x479968], 0
call fcn.00409733
push 0
push 0
push ebx
call fcn.0040b9f7
push 0xe8
call fcn.0045a870
add esp, 0x14
mov esi, dword [0x47af78]
xor ecx, ecx
xor edx, edx
mov edi, 2
mov dword [0x47d8e0], 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 0x45c31c
lea ebx, [ebx]
mov al, byte [esi + 0x39]
xor edi, edi
cmp al, 9
jne 0x45c271
movzx eax, word [esi + 0x3a]
test al, 0x20
je 0x45c223
test al, 2
je 0x45c223
cmp dword [esi + 0x30], edi
jl 0x45c223
mov edx, dword [ebp - 0x74]
inc edx
mov dword [ebp - 0x74], edx
mov edi, edx
test al, 0x10
je 0x45c231
test al, 1
je 0x45c231
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 0x45c260
test dl, dl
je 0x45c25c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c260
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c240
xor eax, eax
jmp 0x45c265
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45c281
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x7c], eax
jmp 0x45c281
cmp al, 1
jne 0x45c281
test byte [esi + 0x3a], 0x10
je 0x45c281
inc edx
mov dword [ebp - 0x54], edx
mov edi, edx
test edi, edi
je 0x45c309
test byte [esi + 0x3a], 0x20
je 0x45c2d0
lea edx, [esi + 0xc]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c297
sub ecx, edi
push ecx
mov ecx, dword [0x47af40]
call fcn.0045efb0
mov edi, eax
add esp, 4
test edi, edi
je 0x45c2d0
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 0x45c2c0
test edi, edi
jne 0x45c2ec
lea ecx, [esi + 0xc]
lea edx, [ebp + 0xe8]
sub edx, ecx
jmp 0x45c2e0
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x45c2e0
lea ecx, [ebp + 0xe8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c2f5
mov edi, dword [ebp - 0x60]
sub ecx, edx
inc edi
add edi, ecx
mov dword [ebp - 0x60], edi
jmp 0x45c30c
mov edi, dword [ebp - 0x60]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x54]
test esi, esi
jne 0x45c200
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [0x47985c], eax
je 0x45c358
mov edx, dword [0x47c080]
test edx, edx
je 0x45c358
cmp dword [edx + 0x24], 0
jle 0x45c352
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 0x45c343
mov eax, dword [ebp - 0x60]
sub ecx, esi
inc edi
add edi, ecx
mov edx, dword [edx]
test edx, edx
jne 0x45c333
mov edx, dword [0x47c264]
xor esi, esi
test edx, edx
je 0x45c38c
test dword [edx + 0x24], 0x80000000
je 0x45c386
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 0x45c377
sub ecx, esi
mov esi, dword [ebp - 0x70]
inc edi
add edi, ecx
mov edx, dword [edx]
test edx, edx
jne 0x45c364
mov ecx, dword [0x47996c]
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.004132d0
mov ecx, dword [0x478704]
add esp, 0xc
cmp dword [0x479974], 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 [0x479968], 0
mov word [ebp - 0x48], ax
je 0x45c3f1
or ax, 4
mov word [ebp - 0x48], ax
test ecx, ecx
jne 0x45c3fd
or ax, 0x10
mov word [ebp - 0x48], ax
test byte [0x47b028], 1
je 0x45c40e
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 [0x47b040]
mov dword [ebp - 0x44], ecx
add ecx, dword [0x47c0f0]
push 0x38
mov dword [ebp - 0x40], ecx
lea ecx, [ecx + eax*4]
mov eax, dword [0x479970]
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.0040af44
mov esi, 0x38
add esp, 0x10
mov byte [ebp - 0x59], 0
cmp dword [ebp - 0x44], esi
jle 0x45c4b7
lea ecx, [ecx]
push ebx
push 1
lea eax, [ebp - 0x59]
push 1
push eax
call fcn.0040af44
inc esi
add esp, 0x10
cmp esi, dword [ebp - 0x44]
jl 0x45c4a0
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x47af78]
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 0x45c586
cmp byte [eax + 0x39], 9
jne 0x45c576
movzx edx, word [eax + 0x3a]
test dl, 0x10
je 0x45c576
test dl, 1
je 0x45c576
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.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040af44
push ebx
call fcn.00409733
push 0
push edi
push ebx
call fcn.0040b9f7
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 0x45c541
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040af44
add esp, 0x10
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x45c560
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 0x45c4d5
mov dword [ebp - 0x64], edi
mov esi, dword [ebp - 0x74]
test esi, esi
jle 0x45c708
lea eax, [esi*4]
push eax
call fcn.0040831a
mov edx, eax
add esp, 4
mov dword [ebp - 0x54], edx
test edx, edx
jne 0x45c5b7
push 0x67
call fcn.0045a870
mov edx, dword [ebp - 0x54]
add esp, 4
mov ecx, dword [0x47af78]
test ecx, ecx
je 0x45c5e3
cmp byte [ecx + 0x39], 9
jne 0x45c5dd
movzx eax, word [ecx + 0x3a]
test al, 0x20
je 0x45c5dd
test al, 2
je 0x45c5dd
mov eax, dword [ecx + 0x30]
test eax, eax
js 0x45c5dd
mov dword [edx + eax*4], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x45c5c1
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], eax
test esi, esi
jle 0x45c6fd
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 0x45c602
mov edi, dword [0x47af40]
sub ebx, ecx
xor ecx, ecx
test edi, edi
je 0x45c648
test ecx, ecx
jg 0x45c648
mov edx, dword [edi + 4]
movsx eax, byte [esi]
movsx ecx, byte [edx]
sub ecx, eax
jne 0x45c642
cmp ebx, dword [edi + 0xc]
jne 0x45c642
push ebx
push esi
push edx
call fcn.004091a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x45ca63
mov edi, dword [edi]
test edi, edi
jne 0x45c617
lea ecx, [ebp + 0x108]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x45c650
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.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040af44
push ebx
call fcn.00409733
push 0
push edi
push ebx
call fcn.0040b9f7
lea ecx, [ebp + 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c6b0
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x108]
push 1
push eax
call fcn.0040af44
lea ecx, [ebp + 0x108]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c6d8
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 0x45c5f7
push dword [ebp - 0x54]
call fcn.004082e2
add esp, 4
cmp dword [0x47985c], 0
je 0x45c7c6
mov eax, dword [0x47c080]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45c7c6
lea ebx, [ebx]
cmp dword [eax + 0x24], 0
jle 0x45c7b9
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.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040af44
push ebx
call fcn.00409733
push 0
push edi
push ebx
call fcn.0040b9f7
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 0x45c787
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040af44
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45c7a3
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 0x45c730
mov eax, dword [0x47af78]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45c883
jmp 0x45c7e0
cmp byte [eax + 0x39], 1
jne 0x45c876
test byte [eax + 0x3a], 0x10
je 0x45c876
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.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040af44
push ebx
call fcn.00409733
push 0
push edi
push ebx
call fcn.0040b9f7
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 0x45c840
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040af44
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x45c860
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 0x45c7e0
mov eax, dword [0x47c264]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45c943
jmp 0x45c8a0
mov edx, dword [eax + 0x24]
test edx, edx
jns 0x45c936
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.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040af44
push ebx
call fcn.00409733
push 0
push edi
push ebx
call fcn.0040b9f7
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 0x45c900
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040af44
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x45c920
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 0x45c8a0
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
push ebx
push 2
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x58], 0x1f
call fcn.0040af44
mov esi, dword [ebp - 0x44]
push ebx
call fcn.00409733
push 0
push esi
push ebx
call fcn.0040b9f7
mov eax, dword [0x47c0fc]
add esp, 0x30
mov dword [0x47d89c], 0
test eax, eax
jle 0x45cb2c
shl eax, 2
push eax
call fcn.0040831a
add esp, 4
mov dword [0x47d89c], eax
test eax, eax
jne 0x45c9b5
push 0x67
call fcn.0045a870
add esp, 4
mov edi, dword [ebp - 0x80]
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov dword [0x47d8ec], 0
test eax, eax
je 0x45c9d1
cmovs ecx, eax
mov dword [edi + 8], ecx
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044ce80
add esp, 4
test eax, eax
je 0x45cb2f
lea eax, [ebp - 0x18]
push 0x3b
push eax
call fcn.00409500
add esp, 8
test eax, eax
je 0x45c9fe
mov word [eax], 0xa
movsx eax, byte [ebp - 0x18]
push eax
lea edi, [ebp - 0x18]
call fcn.0040a7a5
add esp, 4
test eax, eax
je 0x45ca24
movsx eax, byte [edi + 1]
inc edi
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
jne 0x45ca12
mov al, byte [edi]
test al, al
je 0x45cb11
movsx eax, al
push eax
call fcn.0040bd7f
add esp, 4
cmp eax, 0x6c
jne 0x45ca83
cmp byte [edi + 1], 0x2e
jne 0x45ca83
lea ecx, [edi + 2]
xor edx, edx
call fcn.0045c0e0
mov edx, dword [0x47d89c]
mov ecx, dword [0x47d8ec]
mov dword [edx + eax*4], ecx
jmp 0x45cb11
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 0x45ca70
jmp 0x45c65c
cmp byte [edi], 0
mov esi, edi
je 0x45caa5
lea ebx, [ebx]
movsx eax, byte [esi]
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
jne 0x45caa5
inc esi
cmp byte [esi], al
jne 0x45ca90
mov edx, esi
sub edx, edi
mov ecx, edi
call fcn.0045b610
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x47870c], 0
jne 0x45cacc
push edi
push 0x68
mov byte [esi], 0
call fcn.0045a870
add esp, 8
cmp dword [ebx + 0x478710], 1
jne 0x45cb11
movsx eax, byte [esi]
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
je 0x45caf7
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
jne 0x45cae5
push dword [ebx + 0x478708]
mov eax, dword [ebx + 0x478714]
push esi
push 0
call eax
add esp, 0xc
add dword [0x47d8ec], eax
mov edi, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044ce80
add esp, 4
test eax, eax
jne 0x45c9e7
jmp 0x45cb2f
mov edi, dword [ebp - 0x80]
mov ebx, 1
mov dword [0x47d8e4], 0
mov dword [0x47d8e8], 0
mov dword [ebp - 0x54], ebx
jmp 0x45cb50
mov eax, dword [edi + 0xc]
xor ecx, ecx
test eax, eax
je 0x45cb5f
cmovs ecx, eax
mov dword [edi + 8], ecx
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044ce80
add esp, 4
test eax, eax
je 0x45ccb5
lea eax, [ebp - 0x18]
push 0x3b
push eax
call fcn.00409500
add esp, 8
test eax, eax
je 0x45cb8c
mov word [eax], 0xa
movsx eax, byte [ebp - 0x18]
push eax
lea edi, [ebp - 0x18]
call fcn.0040a7a5
add esp, 4
test eax, eax
je 0x45cbb2
movsx eax, byte [edi + 1]
inc edi
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
jne 0x45cba0
mov al, byte [edi]
test al, al
je 0x45cc99
movsx eax, al
push eax
call fcn.0040bd7f
add esp, 4
cmp eax, 0x6c
jne 0x45cbd7
cmp byte [edi + 1], 0x2e
je 0x45cc99
cmp byte [edi], 0
mov esi, edi
je 0x45cbf5
mov edi, edi
movsx eax, byte [esi]
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
jne 0x45cbf5
inc esi
cmp byte [esi], al
jne 0x45cbe0
mov edx, esi
sub edx, edi
mov ecx, edi
call fcn.0045b610
mov ebx, eax
shl ebx, 4
mov dword [ebp - 0x70], ebx
cmp dword [ebx + 0x47870c], 0
jne 0x45cc57
cmp byte [edi], 0
je 0x45cc4c
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x45cc20
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cc20
sub ecx, edx
lea ebx, [ecx - 1]
lea esp, [esp]
movsx eax, byte [ebx + edi]
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
je 0x45cc44
dec ebx
jmp 0x45cc30
mov byte [ebx + edi + 1], 0
mov ebx, dword [ebp - 0x70]
push edi
push 0x68
call fcn.0045a870
add esp, 8
mov eax, dword [ebp - 0x54]
cmp dword [ebx + 0x478710], eax
jne 0x45cc99
movsx eax, byte [esi]
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
je 0x45cc84
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.0040a7a5
add esp, 4
test eax, eax
jne 0x45cc72
push dword [ebx + 0x478708]
mov eax, dword [ebx + 0x478714]
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.0044ce80
add esp, 4
test eax, eax
jne 0x45cb75
mov ebx, dword [ebp - 0x54]
inc ebx
mov dword [ebp - 0x54], ebx
cmp ebx, 2
jle 0x45cb50
mov eax, dword [0x47d8e8]
sub eax, dword [0x47d8e4]
test eax, eax
jle 0x45ccdb
push 0x6a
call fcn.0045a870
add esp, 4
mov eax, dword [0x47d89c]
test eax, eax
je 0x45cced
push eax
call fcn.004082e2
add esp, 4
cmp dword [0x479968], 0
mov ebx, dword [ebp - 0x78]
je 0x45cd05
push ebx
call fcn.0040b5ce
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [0x47d8e0]
test eax, eax
jne 0x45cd27
test byte [0x478704], 2
je 0x45cd23
mov ecx, ebx
call fcn.0045ac70
mov eax, dword [0x47d8e0]
test eax, eax
je 0x45cd36
push str.disk_full
push 0x65
call fcn.0045a870
add esp, 8
mov esi, dword [ebp - 0x44]
push ebx
call fcn.00409733
push 0
push 0
push ebx
call fcn.0040b9f7
push ebx
push 0x38
lea eax, [ebp - 0x50]
push 1
push eax
call fcn.0040af44
mov ecx, dword [ebp + 0x128]
add esp, 0x20
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082d3
lea esp, [ebp + 0x12c]
pop ebp
ret