Function at 0x603d48
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x38]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebp - 0xd], 0
mov edi, dword [ebp + 0x34]
mov byte [ebp - 0x25], 0
cmp dword [ebp + 0x34], 0xffffffff
je 0x603d97
mov eax, dword [ebp + 0x34]
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8]
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0x1c], 0xffffffff
je 0x603db1
cmp dword [ebp + 0x1c], 0
je 0x603db1
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 3
jne 0x603dbe
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x51], 0
jmp 0x603e08
mov eax, dword [ebp + 0x1c]
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x18], eax
cmp byte [ebx + 0x16], 0
jne 0x603ddd
mov byte [ebp - 0x51], 0
jmp 0x603e08
cmp dword [ebp + 0x34], 0xffffffff
je 0x603dfb
mov eax, dword [ebp + 0x34]
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
test byte [edx + eax*8 + 8], 0x10
setne byte [ebp - 0x51]
jmp 0x603e08
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 0x18]
setle byte [ebp - 0x51]
cmp dword [ebx + 0x28], 0
je 0x603e74
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x358], eax
cmp dword [ebx + 0x10], 0
je 0x603e28
mov eax, dword [ebx + 8]
add eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x10]
jle 0x603e31
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x603e42
mov eax, dword [ebx + 8]
add eax, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
call fcn.00442a30
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x358]
mov edx, 0x60486c
mov eax, dword [ebx + 0x28]
call fcn.004444a8
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 4]
call fcn.0049bae8
test al, al
je 0x603e74
mov byte [ebx + 0x24], 1
cmp byte [ebx + 0x24], 0
je 0x603e7e
mov byte [esi + 0x1c], 1
cmp byte [ebp - 0x51], 0
je 0x603ea5
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 2
jne 0x603ea1
test dword [ebp + 0x30], 0xffff0000
jne 0x603ea1
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x603ea5
mov byte [ebp - 0x51], 0
mov eax, dword [ebp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov edx, dword [eax + 0x16c]
mov eax, dword [eax + 0x168]
cmp edx, dword [esp + 4]
jne 0x603ecf
cmp eax, dword [esp]
pop edx
pop eax
jae 0x603ee4
jmp 0x603ed3
pop edx
pop eax
jge 0x603ee4
mov byte [ebp - 0xd], 1
cmp byte [0x66c778], 0
je 0x6047f8
cmp byte [esi + 0x1c], 0
jne 0x603fb0
cmp byte [ebp - 0xd], 0
jne 0x603fb0
cmp dword [ebp + 0x1c], 0xffffffff
je 0x603fb0
cmp byte [ebp - 0x51], 0
je 0x603fb0
mov eax, dword [ebx]
cmp dword [eax + 0x9e54], 0
jle 0x603f41
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 0x12c]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebx]
add eax, 0x9e50
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x30]
call fcn.00603cbc
mov dword [ebp - 0x58], eax
jmp 0x603f6b
mov eax, dword [ebx]
cmp dword [eax + 0x9e64], 0
jne 0x603f65
push 0
mov eax, dword [ebp + 0x30]
push eax
push 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
xor edx, edx
call fcn.00601d2c
mov dword [ebp - 0x58], eax
jmp 0x603f6b
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp + 0x30]
je 0x603fb0
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0x34], 0xffffffff
je 0x603fb0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
call fcn.0053e27c
test al, al
jne 0x603fb0
mov eax, dword [ebx]
mov edx, dword [ebp + 0x34]
call fcn.00540e04
cmp dword [ebx + 0x10], 0
je 0x60485e
inc dword [ebx + 4]
jmp 0x60485e
cmp dword [ebp + 0x34], 0xffffffff
jne 0x60400b
cmp byte [ebp - 0x51], 0
jne 0x603fce
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x603fc8
cmp dword [ebp + 0x30], 0
jne 0x603fce
cmp byte [ebp - 1], 0
je 0x60400b
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x30]
call fcn.0053e01c
mov edi, eax
cmp edi, 0xffffffff
je 0x60400b
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 3
jne 0x60485e
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
test byte [edx + eax*8 + 8], 2
jne 0x60400b
mov byte [ebp - 1], 0
cmp dword [ebp + 0x30], 0
jne 0x60401d
cmp dword [ebp + 0x1c], 0xffffffff
je 0x604062
cmp dword [ebp + 0x1c], 0
je 0x604062
cmp dword [ebp + 0x30], 2
jb 0x604051
mov eax, dword [ebp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov edx, dword [eax + 0x16c]
mov eax, dword [eax + 0x168]
cmp edx, dword [esp + 4]
jne 0x60404d
cmp eax, dword [esp]
pop edx
pop eax
jae 0x604062
jmp 0x604051
pop edx
pop eax
jge 0x604062
mov byte [ebp - 0xd], 1
cmp byte [0x66c778], 0
je 0x6047f8
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov edx, dword [eax + 0x12c]
cmp edx, dword [ebp + 0x30]
jne 0x60408f
cmp dword [eax + 0x5c], 2
jb 0x60408f
cmp dword [ebp + 0x30], 0
je 0x60408f
mov eax, dword [ebp + 8]
mov dword [eax], 0x8005
jmp 0x60485e
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x30]
jne 0x6040a8
mov byte [ebp - 0xd], 1
cmp byte [0x66c778], 0
je 0x6047f8
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x6040d3
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 2
jb 0x6040d3
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 0x12c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
je 0x6040ed
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 2
jb 0x6040fe
cmp dword [ebp - 0x1c], 1
ja 0x6040fe
mov byte [ebp - 0xd], 1
cmp byte [0x66c778], 0
je 0x6047f8
cmp byte [ebp - 0xd], 0
jne 0x60410a
cmp byte [esi + 0x1c], 0
je 0x604113
mov byte [ebp - 0x25], 0
jmp 0x6041c6
cmp byte [ebp - 1], 0
jne 0x604122
mov byte [ebp - 0x25], 0
jmp 0x6041c6
cmp byte [ebp + 0x20], 0
jne 0x60417e
cmp dword [ebp + 0x2c], 0
jne 0x60417e
cmp dword [ebp + 0x28], 0
jne 0x60417e
lea eax, [ebp - 0x24]
call fcn.0049f074
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx]
mov edx, dword [edx + 0x9e4c]
mov ecx, dword [edx + 0xfc]
xor edx, edx
div ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x604161
mov dword [ebp - 0x34], 1
mov eax, dword [ebp + 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x34]
cdq
push edx
push eax
lea eax, [ebp - 0x24]
xor edx, edx
call fcn.0049f328
mov byte [ebp - 0x25], 1
jmp 0x6041c6
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
movzx eax, byte [ebp + 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
movzx ecx, byte [ebp + 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.004c8754
test al, al
je 0x6041b1
mov byte [ebp - 0x25], 1
jmp 0x6041c6
mov byte [ebp - 0x25], 0
mov byte [ebp - 0xd], 1
cmp byte [0x66c778], 0
je 0x6047f8
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x60], 0x7fffffff
cmp byte [ebp - 1], 0
je 0x6041e4
cmp byte [ebp - 0xd], 0
jne 0x6041e4
cmp byte [esi + 0x1c], 0
je 0x6041ea
mov byte [ebp - 0x3d], 0
jmp 0x604254
lea eax, [ebp - 0x344]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xa98]
xor edx, edx
call fcn.00480ac8
push eax
push 1
movzx eax, byte [ebp + 0x20]
xor al, 1
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov edx, dword [ebp - 0x18]
call fcn.004cac94
mov byte [ebp - 0x3d], al
cmp byte [ebp - 0x3d], 0
jne 0x604254
mov eax, dword [ebp + 8]
cmp dword [eax], 0x8005
je 0x604243
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x604254
mov byte [ebp - 0xd], 1
cmp byte [0x66c778], 0
je 0x6047f8
cmp dword [ebp + 0x34], 0xffffffff
jne 0x6045af
cmp byte [ebx + 0x15], 0
je 0x604271
cmp byte [esi + 0x1c], 0
jne 0x604271
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x604278
mov dword [ebp - 0x14], 2
cmp byte [ebx + 0x1c], 0
je 0x604282
or dword [ebp - 0x14], 0x20
cmp dword [ebp + 0x1c], 0xffffffff
je 0x6042de
cmp dword [ebp + 0x1c], 0
je 0x6042de
cmp dword [ebp + 0x18], 0
jl 0x6042de
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 0x18]
jg 0x6042b1
or dword [ebp - 0x14], 0x10
mov dword [ebp - 0x50], 0x10000000
jmp 0x6042c9
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x18]
mov eax, dword [edx + eax*8 + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x18]
mov eax, dword [edx + eax*8 + 8]
mov dword [ebp - 0x44], eax
jmp 0x604305
cmp dword [ebp + 0x30], 0
je 0x6042f4
mov dword [ebp - 0x50], 0x20000000
mov dword [ebp - 0x48], 0x1fffffd
jmp 0x6042fe
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0xffffffff
cmp edi, 0xffffffff
jne 0x60435e
mov eax, dword [ebp - 0x18]
push eax
push 0x1fffffd
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0x80
lea eax, [ebp - 0x3e]
push eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x1c]
call fcn.0053ff54
mov edi, eax
cmp dword [ebx + 0x10], 0
je 0x60435e
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx]
cmp eax, dword [edx + 0xae0]
jge 0x604355
xor eax, eax
mov dword [ebx + 0x10], eax
jmp 0x60435e
test byte [ebp - 0x14], 2
jne 0x60435e
inc dword [ebx + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 3
jne 0x60448b
cmp byte [ebx + 0x14], 0
je 0x60448b
test byte [ebp - 0x14], 0x10
jne 0x60448b
cmp dword [ebp + 0x1c], 0xffffffff
je 0x60448b
cmp edi, 0xffffffff
je 0x60448b
mov eax, dword [ebx]
mov ecx, 0x10
mov edx, edi
call fcn.005404a4
test eax, eax
je 0x60448b
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
test byte [edx + eax*8 + 8], 0x10
jne 0x6043d7
mov eax, dword [ebx]
mov ecx, 0x10
mov edx, dword [ebp + 0x1c]
call fcn.005404a4
test eax, eax
jne 0x60448b
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8 + 0xc]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
je 0x6043fc
mov eax, dword [ebx]
mov ecx, edi
mov edx, dword [ebp - 0x5c]
call fcn.00540a1c
mov dword [ebp - 0x4c], 0x40000000
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
test byte [edx + eax*8 + 8], 0x10
je 0x60441d
or dword [ebp - 0x4c], 0x10000000
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
test byte [edx + eax*8 + 8], 0x20
je 0x604437
or dword [ebp - 0x4c], 0x20000000
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
mov eax, dword [edx + eax*8 + 4]
push eax
push 0
push 0
push 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
call fcn.00540af8
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, edi
call fcn.0053c554
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
mov dword [edx + eax*8], 0x1fffffd
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
and dword [edx + eax*8 + 8], 0xffffffef
cmp edi, 0xffffffff
jne 0x6044ad
movzx eax, byte [ebp - 1]
and al, byte [ebp - 0x3d]
je 0x6047f8
lea eax, [ebp - 0x344]
call fcn.004cb4e4
jmp 0x6047f8
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
mov edx, dword [edx + eax*8]
and edx, 0x1ffffff
cmp edx, 0x1fffffd
jne 0x60451b
mov edx, dword [ebx]
mov edx, dword [edx + 0xae8]
cmp dword [edx + eax*8 + 0xc], 0xffffffff
jne 0x60451b
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
mov ecx, dword [ebp - 0x48]
mov dword [edx + eax*8], ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
mov ecx, dword [ebp - 0x44]
mov dword [edx + eax*8 + 4], ecx
test byte [ebp - 0x14], 0x10
je 0x604509
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
or dword [edx + eax*8 + 8], 0x10
cmp dword [ebp + 0x14], 0
je 0x60451b
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, edi
call fcn.0053c554
cmp byte [ebp - 0x3e], 0
jne 0x604595
cmp byte [ebp - 1], 0
je 0x604538
cmp byte [ebp - 0x3d], 0
je 0x604538
lea eax, [ebp - 0x344]
call fcn.004cb4e4
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xae8]
cmp dword [edx + eax*8 + 0xc], 0xffffffff
jne 0x604573
cmp dword [ebp + 0x1c], 0xffffffff
je 0x604573
cmp edi, 8
jle 0x604573
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
lea eax, [edx + eax*8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x50]
or dword [eax], edx
mov dword [ebp - 0xc], edi
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xae8]
cmp dword [edx + eax*8 + 0xc], 0xffffffff
je 0x60458d
mov dword [ebp - 0xc], 0xffffffff
or edi, 0xffffffff
jmp 0x6047f8
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
lea eax, [edx + eax*8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x50]
or dword [eax], edx
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov dword [ebp - 0xc], edi
xor eax, eax
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], eax
cmp byte [ebp - 1], 0
je 0x6047f8
cmp byte [esi + 0x1c], 0
jne 0x6047f8
cmp byte [ebp - 0x3d], 0
jne 0x604606
mov eax, dword [ebx]
mov edx, edi
call fcn.00540e04
cmp dword [ebx + 0x10], 0
je 0x6047df
inc dword [ebx + 4]
jmp 0x6047df
cmp dword [ebx + 0x28], 0
je 0x60466d
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x328]
test eax, eax
jns 0x604622
add eax, 0x1f
sar eax, 5
mov dword [ebp - 0x354], eax
cmp dword [ebx + 0x10], 0
je 0x60463c
mov eax, dword [ebx + 8]
add eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x10]
jle 0x604645
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x604656
mov eax, dword [ebx + 8]
add eax, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
call fcn.00442a30
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x358]
mov edx, 0x604870
mov eax, dword [ebx + 0x28]
call fcn.004444a8
mov eax, dword [ebp - 0x328]
cmp eax, dword [ebp - 0x2c]
jle 0x604681
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x344]
call fcn.006023ec
test al, al
je 0x604737
test byte [ebp - 0x30d], 8
jne 0x604737
cmp byte [ebp - 0x2df], 0
je 0x6046f6
cmp edi, 8
jne 0x60475c
xor eax, eax
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x2e0], 0
je 0x6046c8
or dword [ebp - 0x48], 0x10000000
cmp byte [ebx + 0x1c], 0
je 0x6046d5
or dword [ebp - 0x48], 0x20000000
mov eax, dword [ebp - 0x31c]
shr eax, 5
push eax
push 0
push 0
push 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x48]
mov edx, 4
call fcn.00540af8
jmp 0x60475c
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x2d8]
push eax
mov eax, dword [ebp - 0x2dc]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
cmp dword [eax + 0x5c], 3
jne 0x604723
cmp byte [ebx + 0x14], 0
jne 0x604723
xor edx, edx
jmp 0x604725
mov dl, 1
mov ecx, dword [ebp - 0x31c]
shr ecx, 5
mov eax, esi
call fcn.00603968
jmp 0x60475c
cmp dword [ebx + 0x28], 0
je 0x60475c
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 4]
call fcn.0049bae8
test al, al
je 0x60475c
mov byte [ebx + 0x24], 1
mov byte [esi + 0x1c], 1
cmp byte [esi + 0x1c], 0
jne 0x60479c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x344]
call fcn.004cafb8
mov byte [ebp - 0x65], al
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x604781
cmp dword [ebp - 0x64], 0
jne 0x60478a
cmp dword [ebp - 0x64], 0x8013
jne 0x604792
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
mov dword [eax], edx
cmp byte [ebp - 0x65], 0
jne 0x604606
lea eax, [ebp - 0x344]
call fcn.004cb4e4
mov eax, dword [esi + 8]
dec eax
test eax, eax
jl 0x6047df
inc eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x18]
mov eax, dword [edx + eax*8]
call fcn.00603620
mov edx, dword [ebp - 0x5c]
lea edx, [edx + edx*2]
mov ecx, dword [esi + 0x18]
mov dword [ecx + edx*8], eax
inc dword [ebp - 0x5c]
dec dword [ebp - 0x74]
jne 0x6047ba
cmp byte [ebp - 0x25], 0
je 0x6047f8
mov eax, dword [ebp - 0x2c]
add eax, 0x20
push eax
lea ecx, [ebp - 0x24]
mov eax, ebx
ret
mov edx, edi
call fcn.00603a88
cmp byte [ebp - 0x25], 0
je 0x604806
lea eax, [ebp - 0x24]
call fcn.0049f080
cmp byte [ebp - 0xd], 0
je 0x604847
cmp edi, 0xffffffff
je 0x604834
mov eax, dword [ebx]
mov edx, edi
call fcn.00540e04
mov eax, edi
add eax, eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xaec]
or dword [edx + eax*8 + 8], 1
cmp dword [ebx + 0x10], 0
je 0x604834
inc dword [ebx + 4]
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x60485e
mov eax, dword [ebp + 8]
mov dword [eax], 0x8005
jmp 0x60485e
cmp byte [esi + 0x1c], 0
je 0x60485e
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x60485e
mov eax, dword [ebp + 8]
mov dword [eax], 0x8013
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34