Function at 0x45c7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x4772e0]
xor eax, ebp
mov dword [ebp + 0x128], eax
mov eax, dword [0x47c010]
push ebx
push esi
push edi
push 0
push 0x47e8c0
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], eax
call fcn.004606a0
mov ebx, dword [ebp - 0x78]
add esp, 8
test eax, eax
je 0x45c856
push ebx
mov dword [0x47a978], 0
call fcn.00409b33
push 0
push 0
push ebx
call fcn.0040bdf7
push 0xe8
call fcn.0045aef0
add esp, 0x14
mov esi, dword [0x47bf98]
xor ecx, ecx
xor edx, edx
mov edi, 2
mov dword [0x47e900], 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 0x45c9ac
lea ebx, [ebx]
mov al, byte [esi + 0x39]
xor edi, edi
cmp al, 9
jne 0x45c901
movzx eax, word [esi + 0x3a]
test al, 0x20
je 0x45c8b3
test al, 2
je 0x45c8b3
cmp dword [esi + 0x30], edi
jl 0x45c8b3
mov edx, dword [ebp - 0x74]
inc edx
mov dword [ebp - 0x74], edx
mov edi, edx
test al, 0x10
je 0x45c8c1
test al, 1
je 0x45c8c1
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 0x45c8f0
test dl, dl
je 0x45c8ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45c8f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x45c8d0
xor eax, eax
jmp 0x45c8f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45c911
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x7c], eax
jmp 0x45c911
cmp al, 1
jne 0x45c911
test byte [esi + 0x3a], 0x10
je 0x45c911
inc edx
mov dword [ebp - 0x54], edx
mov edi, edx
test edi, edi
je 0x45c999
test byte [esi + 0x3a], 0x20
je 0x45c960
lea edx, [esi + 0xc]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c927
sub ecx, edi
push ecx
mov ecx, dword [0x47bf60]
call fcn.0045f640
mov edi, eax
add esp, 4
test edi, edi
je 0x45c960
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 0x45c950
test edi, edi
jne 0x45c97c
lea ecx, [esi + 0xc]
lea edx, [ebp + 0xe8]
sub edx, ecx
jmp 0x45c970
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x45c970
lea ecx, [ebp + 0xe8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c985
mov edi, dword [ebp - 0x60]
sub ecx, edx
inc edi
add edi, ecx
mov dword [ebp - 0x60], edi
jmp 0x45c99c
mov edi, dword [ebp - 0x60]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x54]
test esi, esi
jne 0x45c890
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [0x47a86c], eax
je 0x45c9e8
mov edx, dword [0x47d0a0]
test edx, edx
je 0x45c9e8
cmp dword [edx + 0x24], 0
jle 0x45c9e2
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 0x45c9d3
mov eax, dword [ebp - 0x60]
sub ecx, esi
inc edi
add edi, ecx
mov edx, dword [edx]
test edx, edx
jne 0x45c9c3
mov edx, dword [0x47d284]
xor esi, esi
test edx, edx
je 0x45ca1c
test dword [edx + 0x24], 0x80000000
je 0x45ca16
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 0x45ca07
sub ecx, esi
mov esi, dword [ebp - 0x70]
inc edi
add edi, ecx
mov edx, dword [edx]
test edx, edx
jne 0x45c9f4
mov ecx, dword [0x47a97c]
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.00413930
mov ecx, dword [0x479714]
add esp, 0xc
cmp dword [0x47a984], 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 [0x47a978], 0
mov word [ebp - 0x48], ax
je 0x45ca81
or ax, 4
mov word [ebp - 0x48], ax
test ecx, ecx
jne 0x45ca8d
or ax, 0x10
mov word [ebp - 0x48], ax
test byte [0x47c048], 1
je 0x45ca9e
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 [0x47c060]
mov dword [ebp - 0x44], ecx
add ecx, dword [0x47d110]
push 0x38
mov dword [ebp - 0x40], ecx
lea ecx, [ecx + eax*4]
mov eax, dword [0x47a980]
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.0040b344
mov esi, 0x38
add esp, 0x10
mov byte [ebp - 0x59], 0
cmp dword [ebp - 0x44], esi
jle 0x45cb47
lea ecx, [ecx]
push ebx
push 1
lea eax, [ebp - 0x59]
push 1
push eax
call fcn.0040b344
inc esi
add esp, 0x10
cmp esi, dword [ebp - 0x44]
jl 0x45cb30
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x47bf98]
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 0x45cc16
cmp byte [eax + 0x39], 9
jne 0x45cc06
movzx edx, word [eax + 0x3a]
test dl, 0x10
je 0x45cc06
test dl, 1
je 0x45cc06
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.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b344
push ebx
call fcn.00409b33
push 0
push edi
push ebx
call fcn.0040bdf7
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 0x45cbd1
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b344
add esp, 0x10
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x45cbf0
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 0x45cb65
mov dword [ebp - 0x64], edi
mov esi, dword [ebp - 0x74]
test esi, esi
jle 0x45cd98
lea eax, [esi*4]
push eax
call fcn.0040871a
mov edx, eax
add esp, 4
mov dword [ebp - 0x54], edx
test edx, edx
jne 0x45cc47
push 0x67
call fcn.0045aef0
mov edx, dword [ebp - 0x54]
add esp, 4
mov ecx, dword [0x47bf98]
test ecx, ecx
je 0x45cc73
cmp byte [ecx + 0x39], 9
jne 0x45cc6d
movzx eax, word [ecx + 0x3a]
test al, 0x20
je 0x45cc6d
test al, 2
je 0x45cc6d
mov eax, dword [ecx + 0x30]
test eax, eax
js 0x45cc6d
mov dword [edx + eax*4], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x45cc51
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x7c], eax
test esi, esi
jle 0x45cd8d
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 0x45cc92
mov edi, dword [0x47bf60]
sub ebx, ecx
xor ecx, ecx
test edi, edi
je 0x45ccd8
test ecx, ecx
jg 0x45ccd8
mov edx, dword [edi + 4]
movsx eax, byte [esi]
movsx ecx, byte [edx]
sub ecx, eax
jne 0x45ccd2
cmp ebx, dword [edi + 0xc]
jne 0x45ccd2
push ebx
push esi
push edx
call fcn.004095a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x45d0f3
mov edi, dword [edi]
test edi, edi
jne 0x45cca7
lea ecx, [ebp + 0x108]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x45cce0
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.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b344
push ebx
call fcn.00409b33
push 0
push edi
push ebx
call fcn.0040bdf7
lea ecx, [ebp + 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cd40
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x108]
push 1
push eax
call fcn.0040b344
lea ecx, [ebp + 0x108]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cd68
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 0x45cc87
push dword [ebp - 0x54]
call fcn.004086e2
add esp, 4
cmp dword [0x47a86c], 0
je 0x45ce56
mov eax, dword [0x47d0a0]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45ce56
lea ebx, [ebx]
cmp dword [eax + 0x24], 0
jle 0x45ce49
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.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b344
push ebx
call fcn.00409b33
push 0
push edi
push ebx
call fcn.0040bdf7
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 0x45ce17
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b344
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45ce33
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 0x45cdc0
mov eax, dword [0x47bf98]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45cf13
jmp 0x45ce70
cmp byte [eax + 0x39], 1
jne 0x45cf06
test byte [eax + 0x3a], 0x10
je 0x45cf06
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.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b344
push ebx
call fcn.00409b33
push 0
push edi
push ebx
call fcn.0040bdf7
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 0x45ced0
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b344
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x45cef0
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 0x45ce70
mov eax, dword [0x47d284]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
test eax, eax
je 0x45cfd3
jmp 0x45cf30
mov edx, dword [eax + 0x24]
test edx, edx
jns 0x45cfc6
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.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
push ebx
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0040b344
push ebx
call fcn.00409b33
push 0
push edi
push ebx
call fcn.0040bdf7
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 0x45cf90
sub ecx, edx
push ebx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.0040b344
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 esi, dword [ebp - 0x1c]
push ebx
call fcn.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
push ebx
push 2
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x58], 0x1f
call fcn.0040b344
mov esi, dword [ebp - 0x44]
push ebx
call fcn.00409b33
push 0
push esi
push ebx
call fcn.0040bdf7
mov eax, dword [0x47d11c]
add esp, 0x30
mov dword [0x47e8bc], 0
test eax, eax
jle 0x45d1bc
shl eax, 2
push eax
call fcn.0040871a
add esp, 4
mov dword [0x47e8bc], eax
test eax, eax
jne 0x45d045
push 0x67
call fcn.0045aef0
add esp, 4
mov edi, dword [ebp - 0x80]
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov dword [0x47e90c], 0
test eax, eax
je 0x45d061
cmovs ecx, eax
mov dword [edi + 8], ecx
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d4e0
add esp, 4
test eax, eax
je 0x45d1bf
lea eax, [ebp - 0x18]
push 0x3b
push eax
call fcn.00409900
add esp, 8
test eax, eax
je 0x45d08e
mov word [eax], 0xa
movsx eax, byte [ebp - 0x18]
push eax
lea edi, [ebp - 0x18]
call fcn.0040aba5
add esp, 4
test eax, eax
je 0x45d0b4
movsx eax, byte [edi + 1]
inc edi
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
jne 0x45d0a2
mov al, byte [edi]
test al, al
je 0x45d1a1
movsx eax, al
push eax
call fcn.0040c3e4
add esp, 4
cmp eax, 0x6c
jne 0x45d113
cmp byte [edi + 1], 0x2e
jne 0x45d113
lea ecx, [edi + 2]
xor edx, edx
call fcn.0045c770
mov edx, dword [0x47e8bc]
mov ecx, dword [0x47e90c]
mov dword [edx + eax*4], ecx
jmp 0x45d1a1
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 0x45d100
jmp 0x45ccec
cmp byte [edi], 0
mov esi, edi
je 0x45d135
lea ebx, [ebx]
movsx eax, byte [esi]
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
jne 0x45d135
inc esi
cmp byte [esi], al
jne 0x45d120
mov edx, esi
sub edx, edi
mov ecx, edi
call fcn.0045bca0
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x47971c], 0
jne 0x45d15c
push edi
push 0x68
mov byte [esi], 0
call fcn.0045aef0
add esp, 8
cmp dword [ebx + 0x479720], 1
jne 0x45d1a1
movsx eax, byte [esi]
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
je 0x45d187
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
jne 0x45d175
push dword [ebx + 0x479718]
mov eax, dword [ebx + 0x479724]
push esi
push 0
call eax
add esp, 0xc
add dword [0x47e90c], eax
mov edi, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d4e0
add esp, 4
test eax, eax
jne 0x45d077
jmp 0x45d1bf
mov edi, dword [ebp - 0x80]
mov ebx, 1
mov dword [0x47e904], 0
mov dword [0x47e908], 0
mov dword [ebp - 0x54], ebx
jmp 0x45d1e0
mov eax, dword [edi + 0xc]
xor ecx, ecx
test eax, eax
je 0x45d1ef
cmovs ecx, eax
mov dword [edi + 8], ecx
push ecx
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0044d4e0
add esp, 4
test eax, eax
je 0x45d345
lea eax, [ebp - 0x18]
push 0x3b
push eax
call fcn.00409900
add esp, 8
test eax, eax
je 0x45d21c
mov word [eax], 0xa
movsx eax, byte [ebp - 0x18]
push eax
lea edi, [ebp - 0x18]
call fcn.0040aba5
add esp, 4
test eax, eax
je 0x45d242
movsx eax, byte [edi + 1]
inc edi
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
jne 0x45d230
mov al, byte [edi]
test al, al
je 0x45d329
movsx eax, al
push eax
call fcn.0040c3e4
add esp, 4
cmp eax, 0x6c
jne 0x45d267
cmp byte [edi + 1], 0x2e
je 0x45d329
cmp byte [edi], 0
mov esi, edi
je 0x45d285
mov edi, edi
movsx eax, byte [esi]
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
jne 0x45d285
inc esi
cmp byte [esi], al
jne 0x45d270
mov edx, esi
sub edx, edi
mov ecx, edi
call fcn.0045bca0
mov ebx, eax
shl ebx, 4
mov dword [ebp - 0x70], ebx
cmp dword [ebx + 0x47971c], 0
jne 0x45d2e7
cmp byte [edi], 0
je 0x45d2dc
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x45d2b0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d2b0
sub ecx, edx
lea ebx, [ecx - 1]
lea esp, [esp]
movsx eax, byte [ebx + edi]
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
je 0x45d2d4
dec ebx
jmp 0x45d2c0
mov byte [ebx + edi + 1], 0
mov ebx, dword [ebp - 0x70]
push edi
push 0x68
call fcn.0045aef0
add esp, 8
mov eax, dword [ebp - 0x54]
cmp dword [ebx + 0x479720], eax
jne 0x45d329
movsx eax, byte [esi]
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
je 0x45d314
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.0040aba5
add esp, 4
test eax, eax
jne 0x45d302
push dword [ebx + 0x479718]
mov eax, dword [ebx + 0x479724]
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.0044d4e0
add esp, 4
test eax, eax
jne 0x45d205
mov ebx, dword [ebp - 0x54]
inc ebx
mov dword [ebp - 0x54], ebx
cmp ebx, 2
jle 0x45d1e0
mov eax, dword [0x47e908]
sub eax, dword [0x47e904]
test eax, eax
jle 0x45d36b
push 0x6a
call fcn.0045aef0
add esp, 4
mov eax, dword [0x47e8bc]
test eax, eax
je 0x45d37d
push eax
call fcn.004086e2
add esp, 4
cmp dword [0x47a978], 0
mov ebx, dword [ebp - 0x78]
je 0x45d395
push ebx
call fcn.0040b9ce
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [0x47e900]
test eax, eax
jne 0x45d3b7
test byte [0x479714], 2
je 0x45d3b3
mov ecx, ebx
call fcn.0045b300
mov eax, dword [0x47e900]
test eax, eax
je 0x45d3c6
push str.disk_full
push 0x65
call fcn.0045aef0
add esp, 8
mov esi, dword [ebp - 0x44]
push ebx
call fcn.00409b33
push 0
push 0
push ebx
call fcn.0040bdf7
push ebx
push 0x38
lea eax, [ebp - 0x50]
push 1
push eax
call fcn.0040b344
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