Function at 0x4c1500
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x130], 1
mov byte [ebp - 0x129], 0
cmp dword [0x5c6c1c], 1
jne 0x4c157a
mov eax, dword [0x5fd8ec]
push eax
mov ecx, dword [0x5fd8a0]
push ecx
push str.re_drawing_screen__NEW_BOXES_d___OLD_BOXES_d
lea edx, [ebp - 0x128]
push edx
call fcn.00532706
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 0
call fcn.00436500
add esp, 8
mov dword [0x5fb740], 0
cmp dword [0x5fd8ec], 0xc8
jge 0x4c165e
cmp dword [0x5fd8a0], 0xc8
jge 0x4c165e
push 0x573c44
mov ecx, dword [0x5fd8a0]
mov edx, dword [ecx*4 + 0x663f60]
push edx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4c165e
push 0x573c48
mov eax, dword [0x5fd8ec]
mov ecx, dword [eax*4 + 0x663f60]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
jne 0x4c165e
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
push eax
call fcn.00532e80
add esp, 4
sub eax, 6
mov dword [ebp - 0x148], eax
mov ecx, dword [0x5fd8ec]
mov edx, dword [ecx*4 + 0x663f60]
push edx
call fcn.00532e80
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x148]
cmp eax, dword [ebp - 0x24]
jne 0x4c165e
mov ecx, dword [ebp - 0x148]
push ecx
mov edx, dword [0x5fd8ec]
mov eax, dword [edx*4 + 0x663f60]
push eax
mov ecx, dword [0x5fd8a0]
mov edx, dword [ecx*4 + 0x663f60]
push edx
call fcn.00532db5
add esp, 0xc
test eax, eax
jne 0x4c165e
mov dword [ebp - 0x1c], 1
mov dword [0x5fd9d8], 0
mov dword [0x56f5e0], 0
cmp dword [ebp - 0x1c], 0
jne 0x4c1f4b
mov dword [0x5fd918], 0
cmp dword [0x5fd898], 1
jne 0x4c16a2
push 0xf
push 0x30
push 0x5fd808
call fcn.005323e0
add esp, 0xc
jmp 0x4c16b3
push 0x5f
push 0x30
push 0x5fd808
call fcn.005323e0
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x4c16c5
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x12a
jg 0x4c16f5
cmp dword [0x5fd898], 0
jne 0x4c16f3
mov ecx, dword [ebp - 0x10]
mov dword [ecx*4 + 0x665960], 0
mov edx, dword [ebp - 0x10]
mov dword [edx*4 + 0x712de0], 0
jmp 0x4c16bc
mov dword [ebp - 0x10], 0
jmp 0x4c1707
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x44a
jg 0x4c173f
cmp dword [0x5fd898], 0
je 0x4c172f
cmp dword [0x5fd898], 1
jne 0x4c173d
mov ecx, dword [ebp - 0x10]
cmp dword [ecx*4 + 0x665f40], 0
jge 0x4c173d
mov edx, dword [ebp - 0x10]
mov dword [edx*4 + 0x665f40], 0
jmp 0x4c16fe
cmp dword [0x5fd984], 0
je 0x4c1751
cmp dword [0x5fd984], 2
jne 0x4c1785
cmp dword [0x5fd8a0], 0xc8
jge 0x4c1785
push 0x573c4c
mov eax, dword [0x5fd8a0]
mov ecx, dword [eax*4 + 0x663f60]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4c1785
mov dword [ebp - 0x130], 0
movsx edx, word [0x600434]
test edx, edx
je 0x4c17b5
cmp dword [0x5fdb38], 1
jne 0x4c17b5
cmp dword [0x5fdb08], 0x31
je 0x4c17b5
cmp dword [0x5fdb08], 0x48
je 0x4c17b5
mov dword [ebp - 0x130], 0
cmp dword [ebp - 0x130], 1
jne 0x4c17c3
call fcn.004c7020
mov dword [ebp - 0x14], 1
jmp 0x4c17d5
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jg 0x4c19d0
push 0x573c50
push 0x5fd750
call fcn.00532580
add esp, 8
push 1
mov ecx, dword [ebp - 0x14]
push ecx
push 0x5fd7e0
call fcn.004a7d70
add esp, 0xc
push eax
push 0x5fd750
call fcn.00532590
add esp, 8
push 1
push 0x5fd750
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
push eax
call fcn.004a7e20
add esp, 0xc
add eax, 6
mov dword [ebp - 0xc], eax
mov ecx, dword [0x5fd8a0]
mov edx, dword [ecx*4 + 0x663f60]
movsx eax, byte [edx]
cmp eax, 0x43
jne 0x4c1870
mov ecx, dword [0x5fd8a0]
mov edx, dword [ecx*4 + 0x663f60]
movsx eax, byte [edx + 1]
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx + 0x5fd7df]
cmp eax, edx
jne 0x4c1870
mov dword [ebp - 0xc], 7
cmp dword [ebp - 0xc], 6
jne 0x4c187b
jmp 0x4c17cc
push 3
mov eax, dword [ebp - 0xc]
sub eax, 3
push eax
mov ecx, dword [0x5fd8a0]
mov edx, dword [ecx*4 + 0x663f60]
push edx
call fcn.004a7d70
add esp, 0xc
push eax
call fcn.00535089
add esp, 4
mov dword [0x5fdab0], eax
cmp dword [0x5fdab0], 0
jne 0x4c18b6
jmp 0x4c17cc
mov eax, dword [0x5fd8a0]
mov ecx, dword [eax*4 + 0x663f60]
mov edx, dword [ebp - 0xc]
movsx eax, byte [ecx + edx - 5]
sub eax, 0x30
mov dword [0x5fdb64], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
cdq
mov ecx, 3
idiv ecx
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x150], eax
cmp dword [0x5fdb64], 1
je 0x4c190a
cmp dword [0x5fdb64], 3
jne 0x4c1914
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x5fd810], 0x31
cmp dword [0x5fdb64], 2
jl 0x4c1961
mov eax, dword [ebp - 0x15c]
neg eax
sub eax, 1
mov ecx, dword [0x5fdab0]
mov dword [ecx*4 + 0x665f40], eax
mov edx, dword [ebp - 0x150]
neg edx
sub edx, 1
mov eax, dword [0x5fdab0]
mov dword [eax*4 + 0x659a20], edx
cmp dword [0x5fdb64], 3
jne 0x4c195f
push 0
call fcn.004bd6a0
add esp, 4
jmp 0x4c19cb
mov ecx, dword [0x5fdab0]
mov dword [ecx*4 + 0x665960], 0xf2
mov edx, dword [0x5fdab0]
mov dword [edx*4 + 0x712de0], 0x18a
cmp dword [0x5fdb64], 1
jne 0x4c19cb
cmp dword [0x5fd898], 0
jne 0x4c19cb
push 0x130
movsx eax, word [0x575688]
mov ecx, dword [0x5fdab0]
add eax, dword [ecx*4 + 0x712de0]
push eax
movsx edx, word [0x575684]
mov eax, dword [0x5fdab0]
add edx, dword [eax*4 + 0x665960]
push edx
call fcn.004b8790
add esp, 0xc
jmp 0x4c17cc
mov dword [ebp - 0x20], 0
jmp 0x4c19e2
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x13
jg 0x4c1f4b
cmp dword [0x5fd898], 0
jne 0x4c1f4b
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 5
idiv ecx
imul eax, eax, 0x76
add eax, 3
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 5
idiv ecx
imul edx, edx, 0x7e
add edx, 3
mov dword [ebp - 0x18], edx
push 0x573c54
push 0x5fd750
call fcn.00532580
add esp, 8
push 1
mov edx, dword [ebp - 0x20]
add edx, 7
push edx
push 0x5fd7e0
call fcn.004a7d70
add esp, 0xc
push eax
push 0x5fd750
call fcn.00532590
add esp, 8
push 1
push 0x5fd750
mov eax, dword [0x5fd8a0]
mov ecx, dword [eax*4 + 0x663f60]
push ecx
call fcn.004a7e20
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
movsx ecx, byte [eax]
cmp ecx, 0x43
jne 0x4c1ab4
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
movsx ecx, byte [eax + 1]
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 0x5fd7e6]
cmp ecx, eax
jne 0x4c1ab4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x4c1abf
jmp 0x4c19d9
push 3
mov ecx, dword [ebp - 0xc]
add ecx, 3
push ecx
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
push eax
call fcn.004a7d70
add esp, 0xc
push eax
call fcn.00535089
add esp, 4
mov dword [0x5fdab0], eax
mov ecx, dword [0x5fd8a0]
mov edx, dword [ecx*4 + 0x663f60]
mov eax, dword [ebp - 0xc]
movsx ecx, byte [edx + eax + 1]
sub ecx, 0x30
mov dword [0x5fdb64], ecx
cmp dword [0x5fdab0], 0
jne 0x4c1b18
jmp 0x4c19d9
cmp dword [0x5fdb64], 1
je 0x4c1b2a
cmp dword [0x5fdb64], 3
jne 0x4c1b65
cmp dword [0x5fdb64], 1
jne 0x4c1b52
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 0x5fd7e6]
sub eax, 0x30
push eax
mov ecx, dword [0x5fdab0]
push ecx
call fcn.004c26f0
add esp, 8
jmp 0x4c1b65
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 0x5fd7e6]
push eax
call fcn.004c27b0
add esp, 4
cmp dword [0x5fdb64], 5
jne 0x4c1b78
call fcn.0049d980
jmp 0x4c1f46
cmp dword [0x5fdb64], 2
jl 0x4c1cf3
movsx ecx, word [0x600434]
test ecx, ecx
je 0x4c1bbc
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx - 6]
push eax
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x134]
lea edx, [ecx + ecx - 6]
push edx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x134], eax
mov eax, dword [0x5fdab0]
mov ecx, dword [ebp - 0x18]
mov dword [eax*4 + 0x665f40], ecx
mov edx, dword [0x5fdab0]
mov eax, dword [ebp - 0x134]
mov dword [edx*4 + 0x659a20], eax
cmp dword [0x5fd9f0], 4
jne 0x4c1cd2
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 5
idiv ecx
imul eax, eax, 0x28
add eax, 0x14
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 5
idiv ecx
shl edx, 1
mov edx, dword [edx*8 + 0x664498]
add edx, 0x41
mov dword [ebp - 0x18], edx
movsx eax, word [0x600434]
test eax, eax
je 0x4c1c53
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx - 6]
push edx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x134]
lea ecx, [eax + eax - 6]
push ecx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x134], eax
mov edx, dword [0x5fdab0]
mov eax, dword [edx*4 + 0x65ac60]
push eax
push 0x6596e0
call fcn.00532580
add esp, 8
mov ecx, dword [0x5fdab0]
cmp dword [ecx*4 + 0x664820], 0
je 0x4c1c99
mov edx, dword [0x5fdab0]
mov eax, dword [edx*4 + 0x664820]
add eax, 3
push eax
call fcn.004deed0
add esp, 4
jmp 0x4c1ca6
push 0x573c58
call fcn.004deed0
add esp, 4
push 0
push 0
mov ecx, dword [ebp - 0x134]
add ecx, 0x3e8
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x6596e0
call fcn.004d4390
add esp, 0x14
call fcn.004df1b0
jmp 0x4c19d9
cmp dword [0x5fdb64], 3
je 0x4c1ce4
cmp dword [0x5fdb64], 4
jne 0x4c1ce9
call fcn.004bd3e0
jmp 0x4c19d9
mov eax, dword [0x5fdab0]
mov ecx, dword [eax*4 + 0x662ce0]
mov edx, dword [ebp - 0x20]
mov al, byte [edx + 0x5fd7e6]
mov byte [ecx], al
mov ecx, dword [0x5fdab0]
mov edx, dword [ebp - 0x18]
mov dword [ecx*4 + 0x665960], edx
mov eax, dword [0x5fdab0]
mov ecx, dword [ebp - 0x134]
mov dword [eax*4 + 0x712de0], ecx
cmp dword [0x5fdb64], 1
jne 0x4c1f46
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x144], eax
cmp dword [0x5fdb84], 0
je 0x4c1e71
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 5
idiv ecx
add eax, 1
imul eax, eax, 0x31
sub eax, 0x2e
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x20]
cdq
mov ecx, 5
idiv ecx
imul edx, edx, 0x3f
add edx, 3
mov dword [ebp - 0x168], edx
cmp dword [0x5fd9f0], 6
jne 0x4c1db3
mov edx, dword [ebp - 0x168]
add edx, 0x1f
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x144]
add eax, 0x18
mov dword [ebp - 0x144], eax
fild dword [ebp - 0x144]
fmul qword [str.333333]
call fcn.00532f90
sub eax, 4
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x168]
lea edx, [ecx + ecx - 3]
mov dword [ebp - 0x168], edx
cmp dword [ebp - 0x144], 0x3c
je 0x4c1e07
cmp dword [ebp - 0x144], 0x78
je 0x4c1e07
cmp dword [ebp - 0x144], 0xb2
je 0x4c1e07
cmp dword [ebp - 0x144], 0xee
jne 0x4c1e16
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
mov ecx, dword [0x5fdab0]
mov edx, dword [ebp - 0x168]
mov dword [ecx*4 + 0x665960], edx
mov eax, dword [0x5fdab0]
mov ecx, dword [ebp - 0x144]
mov dword [eax*4 + 0x712de0], ecx
cmp dword [0x5fd9f0], 6
jne 0x4c1e6f
mov edx, dword [ebp - 0x168]
sub edx, 0x3f
mov eax, dword [0x5fdab0]
mov dword [eax*4 + 0x665960], edx
mov ecx, dword [ebp - 0x144]
sub ecx, 0x3b
mov edx, dword [0x5fdab0]
mov dword [edx*4 + 0x712de0], ecx
jmp 0x4c1e98
cmp dword [0x5fd9f0], 6
jne 0x4c1e98
mov eax, dword [ebp - 0x168]
add eax, 0x3f
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x3b
mov dword [ebp - 0x144], ecx
mov edx, dword [0x5fdab0]
mov eax, dword [edx*4 + 0x662ce0]
push eax
call fcn.00532e80
add esp, 4
cmp eax, 0x23
jb 0x4c1eec
push 3
mov ecx, dword [0x5fdab0]
mov edx, dword [ecx*4 + 0x662ce0]
add edx, 0x20
push edx
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
mov byte [0x5fd753], 0
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [0x5fdab0], eax
movsx eax, word [0x600434]
test eax, eax
je 0x4c1f29
mov ecx, dword [ebp - 0x168]
lea edx, [ecx + ecx - 6]
push edx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x144]
lea ecx, [eax + eax - 6]
push ecx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x144], eax
mov edx, dword [0x5fdab0]
push edx
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.004b8790
add esp, 0xc
jmp 0x4c19d9
push 1
push 0x573c60
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
push eax
call fcn.004a7e20
add esp, 0xc
add eax, 2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
je 0x4c26a2
cmp dword [0x5fd898], 0
jne 0x4c26a2
push 4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x5fd8a0]
mov eax, dword [edx*4 + 0x663f60]
push eax
call fcn.004a7d70
add esp, 0xc
push eax
call fcn.00535089
add esp, 4
mov dword [0x5fdaa8], eax
cmp dword [0x5fdaa8], 0
je 0x4c26a2
mov ecx, dword [0x5fdaa8]
mov edx, dword [ecx*4 + 0x65bea0]
movsx eax, byte [edx + 1]
cmp eax, 0x31
je 0x4c1fec
mov ecx, dword [0x5fdaa8]
mov edx, dword [ecx*4 + 0x65bea0]
movsx eax, byte [edx + 1]
cmp eax, 0x32
jne 0x4c2173
mov ecx, dword [0x5fdaa8]
mov edx, dword [ecx*4 + 0x65bea0]
movsx eax, byte [edx + 1]
cmp eax, 0x31
jne 0x4c200e
mov dword [ebp - 0x14c], 1
jmp 0x4c2018
mov dword [ebp - 0x14c], 2
push 3
mov ecx, dword [0x5fdaa8]
mov edx, dword [ecx*4 + 0x65bea0]
add edx, 0xd
push edx
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
mov byte [0x5fd753], 0
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [ebp - 0x164], eax
push 3
mov eax, dword [0x5fdaa8]
mov ecx, dword [eax*4 + 0x65bea0]
add ecx, 4
push ecx
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x14c], 2
jne 0x4c20c8
movsx edx, word [0x600434]
test edx, edx
je 0x4c20b6
mov eax, dword [ebp - 0x13c]
shl eax, 1
push eax
call fcn.0049d520
add esp, 4
add eax, 0x3e8
mov dword [ebp - 0x13c], eax
jmp 0x4c20c8
mov ecx, dword [ebp - 0x13c]
add ecx, 0x3e8
mov dword [ebp - 0x13c], ecx
push 3
mov edx, dword [0x5fdaa8]
mov eax, dword [edx*4 + 0x65bea0]
add eax, 8
push eax
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [ebp - 0x158], eax
movsx ecx, word [0x600434]
test ecx, ecx
je 0x4c213d
cmp dword [ebp - 0x158], 0x140
jne 0x4c2126
movsx eax, word [0x57568c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x158], eax
jmp 0x4c213d
mov edx, dword [ebp - 0x158]
shl edx, 1
push edx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax*4 + 0x65ac60]
push ecx
push 0x6596e0
call fcn.00532580
add esp, 8
mov edx, dword [0x5fdaa8]
mov eax, dword [edx*4 + 0x65bea0]
mov cl, byte [eax + 0xb]
mov byte [ebp - 0x129], cl
jmp 0x4c223a
mov dword [ebp - 0x14c], 0
push 3
mov edx, dword [0x5fdaa8]
mov eax, dword [edx*4 + 0x65bea0]
add eax, 2
push eax
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
mov byte [0x5fd753], 0
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [ebp - 0x164], eax
push 3
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx*4 + 0x65ac60]
add edx, 1
push edx
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax*4 + 0x65ac60]
movsx edx, byte [ecx]
cmp edx, 0x30
je 0x4c223a
movsx eax, word [0x600434]
test eax, eax
je 0x4c2228
mov ecx, dword [ebp - 0x13c]
shl ecx, 1
push ecx
call fcn.0049d520
add esp, 4
add eax, 0x3e8
mov dword [ebp - 0x13c], eax
jmp 0x4c223a
mov edx, dword [ebp - 0x13c]
add edx, 0x3e8
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], 5
mov dword [ebp - 0x154], 5
mov dword [ebp - 8], 0
cmp dword [ebp - 0x14c], 0
jne 0x4c2378
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax*4 + 0x65ac60]
mov edx, dword [ebp - 0x140]
mov al, byte [edx + ecx + 3]
mov byte [ebp - 0x129], al
push 3
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx*4 + 0x65ac60]
add edx, dword [ebp - 0x140]
push edx
push 0x5fd750
call fcn.00532bd0
add esp, 0xc
mov byte [0x5fd753], 0
push 0x5fd750
call fcn.00535089
add esp, 4
mov dword [ebp - 0x158], eax
movsx eax, word [0x600434]
test eax, eax
je 0x4c22de
mov ecx, dword [ebp - 0x158]
shl ecx, 1
push ecx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x158], eax
push 0x7e
mov edx, dword [ebp - 0x164]
mov eax, dword [edx*4 + 0x65ac60]
add eax, dword [ebp - 0x140]
push eax
call fcn.005350b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c232a
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0x164]
mov edx, dword [ecx*4 + 0x65ac60]
push edx
call fcn.00532e80
add esp, 4
mov dword [ebp - 0x154], eax
jmp 0x4c2340
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 4]
sub ecx, dword [eax*4 + 0x65ac60]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x164]
mov eax, dword [edx*4 + 0x65ac60]
mov ecx, dword [ebp - 0x140]
lea edx, [eax + ecx + 4]
push edx
push 0x6596e0
call fcn.00532580
add esp, 8
mov eax, dword [ebp - 0x154]
sub eax, dword [ebp - 0x140]
mov byte [eax + 0x6596dc], 0
cmp dword [0x573d8c], 1
jne 0x4c23b0
cmp dword [ebp - 0x14c], 2
jne 0x4c23b0
movsx ecx, word [0x575684]
add ecx, dword [ebp - 0x158]
mov dword [ebp - 0x158], ecx
movsx edx, word [0x575688]
add edx, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], edx
cmp dword [0x5fda4c], 0
jne 0x4c2420
cmp dword [ebp - 0x164], 5
jg 0x4c2420
cmp dword [0x601424], 0
je 0x4c23e2
mov dword [0x5fd78c], 1
push 0x573c64
call fcn.004deed0
add esp, 4
push 0x6596e0
call fcn.004d4030
add esp, 4
mov dword [ebp - 0x16c], eax
push 0x6596e0
call fcn.004d4030
add esp, 4
cmp eax, dword [0x573c10]
jl 0x4c2420
push 0x6596e0
call fcn.00532e80
add esp, 4
mov byte [eax + 0x6596df], 0
jmp 0x4c23f5
movsx eax, byte [ebp - 0x129]
cmp eax, 0x43
jne 0x4c2566
cmp dword [ebp - 0x14c], 0
jne 0x4c24c2
mov ecx, dword [ebp - 0x164]
cmp dword [ecx*4 + 0x664820], 0
je 0x4c2493
mov edx, dword [ebp - 0x164]
mov eax, dword [edx*4 + 0x664820]
push eax
push 0x5fd750
call fcn.00532580
add esp, 8
push 0x7c
push 0x5fd751
call fcn.005350b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c2486
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
push 0x5fd750
call fcn.004deed0
add esp, 4
mov edx, dword [0x5fd894]
push edx
push 0
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
push 0x6596e0
call fcn.004d4390
add esp, 0x14
mov dword [ebp - 0x16c], eax
jmp 0x4c254b
mov edx, dword [ebp - 0x164]
cmp dword [edx*4 + 0x664820], 0
je 0x4c24f9
push 1
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.004c0e30
add esp, 0x10
mov dword [ebp - 0x16c], eax
jmp 0x4c254b
cmp dword [0x5fda4c], 0
jne 0x4c2522
cmp dword [ebp - 0x164], 5
jg 0x4c2522
mov dword [0x5fd78c], 1
push 0x573c6c
call fcn.004deed0
add esp, 4
mov eax, dword [0x5fd894]
push eax
push 0
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x158]
push edx
push 0x6596e0
call fcn.004d4390
add esp, 0x14
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x158]
sub ecx, eax
mov dword [ebp - 0x158], ecx
jmp 0x4c25e3
cmp dword [0x5fd894], 0
jne 0x4c25b9
cmp dword [0x5fda4c], 0
jne 0x4c2598
cmp dword [ebp - 0x164], 5
jg 0x4c2598
mov dword [0x5fd78c], 1
push 0x573c74
call fcn.004deed0
add esp, 4
push 0
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.004c0e30
add esp, 0x10
jmp 0x4c25e3
mov edx, dword [ebp - 0x158]
sub edx, 0x10
mov dword [ebp - 0x160], edx
push 0x6596e0
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x160]
push ecx
call fcn.004ddfa0
add esp, 0xc
cmp dword [0x5fd78c], 1
jne 0x4c25fb
mov dword [0x5fd78c], 0
call fcn.004df1b0
mov edx, dword [ebp - 0x164]
cmp dword [edx*4 + 0x664820], 0
je 0x4c2610
call fcn.004df1b0
mov eax, dword [ebp - 0x158]
sub eax, 0xc
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x164]
cmp dword [ecx*4 + 0x664820], 0
je 0x4c2644
push 0x6596e0
call fcn.004d4030
add esp, 4
mov dword [ebp - 0x138], eax
jmp 0x4c265a
push 0x6596e0
call fcn.00532e80
add esp, 4
shl eax, 3
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x154]
add edx, 1
mov dword [ebp - 0x140], edx
cmp dword [ebp - 8], 0
jne 0x4c267c
cmp dword [ebp - 0x14c], 0
je 0x4c2255
mov eax, dword [0x5fdaa8]
add eax, 1
mov dword [0x5fdaa8], eax
mov ecx, dword [0x5fdaa8]
mov edx, dword [ecx*4 + 0x65bea0]
movsx eax, byte [edx]
cmp eax, 0x46
je 0x4c1fbc
mov dword [0x5fdb64], 0
cmp dword [0x5fdb44], 1
jne 0x4c26bf
push 2
call fcn.004b50c0
add esp, 4
cmp dword [0x5fdc24], 0
je 0x4c26d2
push 1
call fcn.004b57d0
add esp, 4
cmp dword [0x5fd7ac], 0
je 0x4c26e0
call fcn.004b5c60
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret