Function at 0x5778d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x577928
mov ecx, dword [ebp + 8]
call fcn.004de320
test eax, eax
je 0x577928
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x40]
imul eax, dword [ecx + 0xfc]
cdq
mov ecx, 0x64
idiv ecx
mov edx, dword [0x6f73fc]
add edx, eax
mov dword [ebp - 8], edx
jmp 0x577937
mov eax, dword [ebp - 4]
mov ecx, dword [0x6f73fc]
add ecx, dword [eax + 0x40]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 4
mov ecx, dword [edx + 0x8c]
and ecx, 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
or edx, dword [ebp - 0x18]
test edx, edx
je 0x577d0d
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x577ac7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x678]
and ecx, 4
mov edx, dword [eax + 0x67c]
and edx, 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x20]
test eax, eax
jne 0x577ac7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xb0], 0
jle 0x577a32
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
test eax, eax
je 0x577a2d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xb4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ecx, 4
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1b0], ax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x6c]
mov eax, dword [ebp + 8]
sub edx, dword [eax + 0x94]
mov ecx, dword [ebp - 4]
add edx, dword [ecx + 0xb0]
mov eax, dword [ebp + 8]
mov word [eax + 0x6c], dx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
mov dword [ecx + 0x94], eax
jmp 0x577ac2
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xb0], 0
jge 0x577ac2
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
cmp eax, 1
jle 0x577ac2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xb4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ecx, 4
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1b0], ax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x6c]
mov eax, dword [ebp + 8]
sub edx, dword [eax + 0x94]
mov ecx, dword [ebp - 4]
add edx, dword [ecx + 0xb0]
mov eax, dword [ebp + 8]
mov word [eax + 0x6c], dx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
mov dword [ecx + 0x94], eax
jmp 0x577d0d
mov ecx, dword [ebp + 8]
call fcn.00486c50
and eax, 0xff
test eax, eax
je 0x577d0d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xb0], 0
jle 0x577c7d
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
test eax, eax
je 0x577c78
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xb4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ecx, 4
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1b0], ax
cmp dword [ebp + 8], 0
je 0x577c78
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x577c44
push 0
mov ecx, dword [ebp - 0xc]
call fcn.004e4ed0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x577c0e
mov ecx, dword [ebp - 0x10]
call fcn.00403dd0
and eax, 0xffff
cmp eax, 0xca9
jl 0x577bd8
mov ecx, dword [ebp - 0x10]
call fcn.00403dd0
and eax, 0xffff
cmp eax, 0xcd0
jg 0x577bd8
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
mov ecx, eax
mov edx, dword [ebp + 8]
sub ecx, dword [edx + 0x94]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov edx, dword [ebp + 8]
mov word [edx + 0x6c], cx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x94], eax
jmp 0x577c0c
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x94]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xb0]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x6c], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
mov dword [edx + 0x94], ecx
jmp 0x577c42
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x94]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xb0]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x6c], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
mov dword [edx + 0x94], ecx
jmp 0x577c78
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x94]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xb0]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x6c], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
mov dword [edx + 0x94], ecx
jmp 0x577d0d
mov edx, dword [ebp - 4]
cmp dword [edx + 0xb0], 0
jge 0x577d0d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x6c]
cmp ecx, 1
jle 0x577d0d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xb4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or edx, 4
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1b0], cx
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x6c]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x94]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xb0]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x6c], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
mov dword [edx + 0x94], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0
mov ecx, dword [edx + 0x8c]
and ecx, 0x10000
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x2c]
or edx, dword [ebp - 0x28]
test edx, edx
je 0x577d72
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
mov edx, dword [eax + 0x5b4]
or edx, 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x160], 0
mov edx, dword [ebp + 8]
mov word [edx + 0x206], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0
mov edx, dword [eax + 0x8c]
and edx, 0x20000
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
test eax, eax
je 0x577dd6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
mov eax, dword [ecx + 0x5b4]
or eax, 0x20000
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x15c], 0
mov eax, dword [ebp + 8]
mov word [eax + 0x204], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
and edx, 0
mov eax, dword [ecx + 0x8c]
and eax, 0x40000
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x3c]
or ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x577e3a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5b0]
mov ecx, dword [edx + 0x5b4]
or ecx, 0x40000
mov edx, dword [ebp + 8]
mov dword [edx + 0x5b0], eax
mov dword [edx + 0x5b4], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x168], 0
mov ecx, dword [ebp + 8]
mov word [ecx + 0x20a], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0x200
mov ecx, dword [edx + 0x8c]
and ecx, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x44]
or edx, dword [ebp - 0x40]
test edx, edx
je 0x577f2d
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x577ede
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x678]
and ecx, 0x200
mov edx, dword [eax + 0x67c]
and edx, 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x4c]
or eax, dword [ebp - 0x48]
test eax, eax
jne 0x577ede
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or dh, 2
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xd0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1be], ax
jmp 0x577f2d
mov ecx, dword [ebp + 8]
call fcn.00486c50
and eax, 0xff
test eax, eax
je 0x577f2d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or dh, 2
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xd0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1be], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
and edx, 0x400
mov eax, dword [ecx + 0x8c]
and eax, 0
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x54]
or ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x578020
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x577fd1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x678]
and eax, 0x400
mov ecx, dword [edx + 0x67c]
and ecx, 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x5c]
or edx, dword [ebp - 0x58]
test edx, edx
jne 0x577fd1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ch, 4
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xd4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x1c0], dx
jmp 0x578020
mov ecx, dword [ebp + 8]
call fcn.00486c50
and eax, 0xff
test eax, eax
je 0x578020
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ch, 4
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xd4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x1c0], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0x800
mov edx, dword [eax + 0x8c]
and edx, 0
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x64]
or eax, dword [ebp - 0x60]
test eax, eax
je 0x578124
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x5780cd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x678]
and edx, 0x800
mov eax, dword [ecx + 0x67c]
and eax, 0
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x6c]
or ecx, dword [ebp - 0x68]
test ecx, ecx
jne 0x5780cd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5b0]
or ah, 8
mov ecx, dword [edx + 0x5b4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x5b0], eax
mov dword [edx + 0x5b4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xd8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1c2], cx
mov ecx, dword [ebp + 8]
call fcn.004e0120
jmp 0x578124
mov ecx, dword [ebp + 8]
call fcn.00486c50
and eax, 0xff
test eax, eax
je 0x578124
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5b0]
or ah, 8
mov ecx, dword [edx + 0x5b4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x5b0], eax
mov dword [edx + 0x5b4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xd8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1c2], cx
mov ecx, dword [ebp + 8]
call fcn.004f6490
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0x1000
mov ecx, dword [edx + 0x8c]
and ecx, 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x74]
or edx, dword [ebp - 0x70]
test edx, edx
je 0x57821f
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x5781d0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x678]
and ecx, 0x1000
mov edx, dword [eax + 0x67c]
and edx, 0
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x7c]
or eax, dword [ebp - 0x78]
test eax, eax
jne 0x5781d0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or dh, 0x10
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xdc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1c4], ax
mov ecx, dword [ebp + 8]
call fcn.004e0120
jmp 0x57821f
mov ecx, dword [ebp + 8]
call fcn.00486c50
and eax, 0xff
test eax, eax
je 0x57821f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or dh, 0x10
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0xdc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1c4], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
and edx, 0x2000
mov eax, dword [ecx + 0x8c]
and eax, 0
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x84]
or ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x578324
mov ecx, dword [ebp + 8]
call fcn.00486c80
and eax, 0xff
test eax, eax
je 0x5782d5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x678]
and eax, 0x2000
mov ecx, dword [edx + 0x67c]
and ecx, 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x8c]
or edx, dword [ebp - 0x88]
test edx, edx
jne 0x5782d5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ch, 0x20
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xe0], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x1c6], dx
jmp 0x578324
mov ecx, dword [ebp + 8]
call fcn.00486c50
and eax, 0xff
test eax, eax
je 0x578324
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ch, 0x20
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xe0], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x1c6], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0x4000
mov edx, dword [eax + 0x8c]
and edx, 0
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x94]
or eax, dword [ebp - 0x90]
test eax, eax
je 0x57839e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or dh, 0x40
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x6f73fc]
add eax, dword [edx + 0x40]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xe4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1c8], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0x8000
mov ecx, dword [edx + 0x8c]
and ecx, 0
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x9c]
or edx, dword [ebp - 0x98]
test edx, edx
je 0x578418
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ch, 0x80
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [0x6f73fc]
add edx, dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0xe8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1ca], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
and edx, 0x20000000
mov eax, dword [ecx + 0x8c]
and eax, 0
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa4]
or ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x578495
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5b0]
or eax, 0x20000000
mov ecx, dword [edx + 0x5b4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x5b0], eax
mov dword [edx + 0x5b4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [0x6f73fc]
add ecx, dword [eax + 0x40]
mov edx, dword [ebp + 8]
mov dword [edx + 0x120], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x1e6], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0x2000000
mov edx, dword [eax + 0x8c]
and edx, 0
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xac]
or eax, dword [ebp - 0xa8]
test eax, eax
je 0x578528
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or edx, 0x2000000
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x6f73fc]
add eax, dword [edx + 0x40]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x110], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1de], cx
mov ecx, dword [ebp - 4]
call fcn.004817d0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x64]
add ecx, eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0x1000000
mov edx, dword [eax + 0x8c]
and edx, 0
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb4]
or eax, dword [ebp - 0xb0]
test eax, eax
je 0x5785a5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
or edx, 0x1000000
mov eax, dword [ecx + 0x5b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x6f73fc]
add eax, dword [edx + 0x40]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1dc], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0x40000000
mov ecx, dword [edx + 0x8c]
and ecx, 0
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xbc]
or edx, dword [ebp - 0xb8]
test edx, edx
je 0x578636
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
or ecx, 0x40000000
mov edx, dword [eax + 0x5b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [0x6f73fc]
add edx, dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0x124], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1e8], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x578636
mov ecx, dword [ebp - 0x14]
call fcn.00526250
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0
mov ecx, dword [edx + 0x8c]
and ecx, 1
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0xc4]
or edx, dword [ebp - 0xc0]
test edx, edx
je 0x5786cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
mov edx, dword [eax + 0x5b4]
or edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [0x6f73fc]
add edx, dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0x12c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1ec], ax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 0x44]
push edx
mov ecx, dword [0x6bc79c]
call fcn.0042fd30
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2ac], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0
mov ecx, dword [edx + 0x8c]
and ecx, 2
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xcc]
or edx, dword [ebp - 0xc8]
test edx, edx
je 0x578744
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
mov edx, dword [eax + 0x5b4]
or edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [0x6f73fc]
add edx, dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0x130], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1ee], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
and edx, 0
mov eax, dword [ecx + 0x8c]
and eax, 0x400
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd4]
or ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x5787be
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5b0]
mov ecx, dword [edx + 0x5b4]
or ch, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x5b0], eax
mov dword [edx + 0x5b4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [0x6f73fc]
add ecx, dword [eax + 0x40]
mov edx, dword [ebp + 8]
mov dword [edx + 0x19c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x224], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0
mov edx, dword [eax + 0x8c]
and edx, 0x1000
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xdc]
or eax, dword [ebp - 0xd8]
test eax, eax
je 0x578838
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
mov eax, dword [ecx + 0x5b4]
or ah, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x6f73fc]
add eax, dword [edx + 0x40]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x20c], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0
mov ecx, dword [edx + 0x8c]
and ecx, 0x800
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe4]
or edx, dword [ebp - 0xe0]
test edx, edx
je 0x5788b3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
mov edx, dword [eax + 0x5b4]
or dh, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [0x6f73fc]
add edx, dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x226], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x88]
and edx, 0
mov eax, dword [ecx + 0x8c]
and eax, 4
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xec]
or ecx, dword [ebp - 0xe8]
test ecx, ecx
je 0x578949
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5b0]
mov ecx, dword [edx + 0x5b4]
or ecx, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x5b0], eax
mov dword [edx + 0x5b4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [0x6f73fc]
add ecx, dword [eax + 0x40]
mov edx, dword [ebp + 8]
mov dword [edx + 0x134], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0x44]
mov word [eax + 0x1f0], dx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 0x44]
push ecx
mov ecx, dword [0x6bc79c]
call fcn.0042fd30
mov edx, dword [ebp + 8]
mov dword [edx + 0x2b4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
and ecx, 0
mov edx, dword [eax + 0x8c]
and edx, 0x10
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf4]
or eax, dword [ebp - 0xf0]
test eax, eax
je 0x5789dd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5b0]
mov eax, dword [ecx + 0x5b4]
or al, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5b0], edx
mov dword [ecx + 0x5b4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x6f73fc]
add eax, dword [edx + 0x40]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x13c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x44]
mov word [edx + 0x1f4], cx
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 0x44]
push eax
mov ecx, dword [0x6bc79c]
call fcn.0042fd30
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2bc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x88]
and eax, 0
mov ecx, dword [edx + 0x8c]
and ecx, 0x20
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xfc]
or edx, dword [ebp - 0xf8]
test edx, edx
je 0x578a55
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5b0]
mov edx, dword [eax + 0x5b4]
or edx, 0x20
mov eax, dword [ebp + 8]
mov dword [eax + 0x5b0], ecx
mov dword [eax + 0x5b4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [0x6f73fc]
add edx, dword [ecx + 0x40]
mov eax, dword [ebp + 8]
mov dword [eax + 0x140], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x44]
mov word [ecx + 0x1f6], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4