Function at 0x49e824
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49fe13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5685c0]
cmp dword [eax], 0
jne 0x49e8ca
lea eax, [ebp - 0x64]
mov edx, 0x49fe2c
call fcn.00405090
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x64]
call fcn.00405964
mov eax, dword [ebp - 0x84]
push eax
push 0xffffff
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x64]
call fcn.00405964
mov edx, dword [ebp - 0x88]
mov eax, dword [0x568518]
mov eax, dword [eax]
call fcn.00477024
mov edx, 0x320
sub edx, eax
sar edx, 1
jns 0x49e8b4
adc edx, 0
mov eax, dword [0x568518]
mov eax, dword [eax]
mov ecx, 0xc8
call fcn.00477224
jmp 0x49fded
xor eax, eax
push ebp
push 0x49e96d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049d74c
mov dword [ebp - 0x54], 0x1c2
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov eax, dword [eax + 0x9c]
add eax, 0x40
add eax, 0x1bd
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov ecx, dword [eax + 0x98]
add ecx, 0x90
add ecx, 0x320
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov edx, dword [eax + 0x9c]
add edx, 0x40
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
add eax, 0x90
call fcn.00417eac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
call fcn.00477b4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49e981
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov edx, 0xffffffa0
sub edx, dword [eax + 0x98]
add edx, 0x10
add edx, 0xe
mov dword [ebp - 0x30], edx
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov edx, 0xffffffc0
sub edx, dword [eax + 0x9c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x573fc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x57400], edx
xor eax, eax
push ebp
push 0x49ed88
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
sub eax, 0x20
mov dword [ebp - 0x1c], eax
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae58]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
mov edx, dword [0x568b80]
mov edx, dword [edx]
mov edx, dword [edx + 0x2ae60]
mov ecx, dword [0x568b80]
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x2ae78]
add edx, 0x23
sub edx, eax
jl 0x49ed09
inc edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x49ea38
add dword [ebp - 0x1c], 0x20
jmp 0x49ecfd
mov eax, dword [ebp - 0x30]
sub eax, 0x60
mov dword [ebp - 0x18], eax
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae54]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae74]
sub eax, 2
mov edx, dword [0x568b80]
mov edx, dword [edx]
mov edx, dword [edx + 0x2ae5c]
mov ecx, dword [0x568b80]
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x2ae74]
add edx, 2
sub edx, eax
jl 0x49ecf9
inc edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x49ece9
cmp dword [ebp - 0xc], 0x78
jge 0x49ece9
cmp dword [ebp - 0x10], 0
jl 0x49ece9
cmp dword [ebp - 0x10], 0x78
jge 0x49ece9
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
mov ax, word [eax + edx*4 + 0xc]
and ax, 0x7fff
movzx eax, ax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jle 0x49ece9
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x10]
mov dword [ebp - 0x40], eax
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x12]
mov dword [ebp - 0x38], eax
test dword [ebp - 0x40], 0x80
jle 0x49eb37
mov byte [ebp - 0x5d], 1
and dword [ebp - 0x40], 0x7f
cmp dword [ebp - 0x40], 0
jle 0x49eb81
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x11]
mov dword [ebp - 0x44], eax
mov eax, dword [0x568bb0]
mov eax, dword [eax]
mov edx, dword [ebp - 0x40]
imul edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x40]
mov ecx, edx
cdq
idiv ecx
mov eax, edx
mov edx, dword [ebp - 0x44]
inc edx
mov ecx, edx
cdq
idiv ecx
add dword [ebp - 0x3c], eax
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
test byte [eax + edx*4 + 0xf], 0x80
jbe 0x49ebe5
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
test byte [eax + edx*4 + 0xe], 0x7f
jbe 0x49ebe5
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
mov al, byte [eax + edx*4 + 0xf]
and al, 0x7f
and eax, 0xff
add dword [ebp - 0x3c], eax
dec dword [ebp - 0x3c]
mov eax, dword [0x568774]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.0048e220
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x49ece9
mov eax, dword [ebp - 0x58]
mov si, 0xfff9
call fcn.004043ac
cmp eax, 0x30
jne 0x49ece9
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
cmp eax, 0x20
jne 0x49ece9
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
mov edx, dword [ebp - 0x1c]
add edx, 0x20
sub edx, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x58]
mov si, 0xfff9
call fcn.004043ac
add eax, dword [ebp - 0x18]
test eax, eax
jle 0x49ecb1
cmp dword [ebp - 0x18], 0x320
jg 0x49ecb1
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
add eax, dword [ebp - 0x20]
test eax, eax
jle 0x49ecb1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jge 0x49ecb1
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x58]
mov si, 0xfffa
call fcn.004043ac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00477b4c
jmp 0x49ece9
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jge 0x49ece9
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x58]
mov si, 0xfffa
call fcn.004043ac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00477b4c
add dword [ebp - 0x18], 0x30
inc dword [ebp - 0xc]
dec dword [ebp - 0x80]
jne 0x49ea8d
add dword [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
dec dword [ebp - 0x7c]
jne 0x49ea29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a868]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49ed7e
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a868]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x6c]
mov si, 0xfffd
call fcn.004043ac
mov eax, dword [0x568668]
cmp byte [eax], 0
je 0x49ed76
push 0
push 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
call fcn.0049da94
inc dword [ebp - 0x14]
dec dword [ebp - 0x7c]
jne 0x49ed25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ed9c
xor eax, eax
push ebp
push 0x49f5e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
sub eax, 0x20
mov dword [ebp - 0x1c], eax
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae58]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
mov edx, dword [0x568b80]
mov edx, dword [edx]
mov edx, dword [edx + 0x2ae60]
mov ecx, dword [0x568b80]
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x2ae78]
add edx, 0x23
sub edx, eax
jl 0x49f5d6
inc edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x49ee0b
add dword [ebp - 0x1c], 0x20
jmp 0x49f5ca
mov eax, dword [ebp - 0x30]
sub eax, 0x60
mov dword [ebp - 0x18], eax
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae54]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae74]
sub eax, 2
mov edx, dword [0x568b80]
mov edx, dword [edx]
mov edx, dword [edx + 0x2ae5c]
mov ecx, dword [0x568b80]
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x2ae74]
add edx, 2
sub edx, eax
jl 0x49f190
inc edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x49f180
cmp dword [ebp - 0xc], 0x78
jge 0x49f180
cmp dword [ebp - 0x10], 0
jl 0x49f180
cmp dword [ebp - 0x10], 0x78
jge 0x49f180
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
mov ax, word [eax + edx*4 + 0xc]
and ax, 0x7fff
movzx eax, ax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jle 0x49f180
mov byte [ebp - 0x5d], 0
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x12]
mov dword [ebp - 0x38], eax
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x10]
mov dword [ebp - 0x40], eax
test dword [ebp - 0x40], 0x80
jle 0x49ef0e
mov byte [ebp - 0x5d], 1
and dword [ebp - 0x40], 0x7f
cmp dword [ebp - 0x40], 0
jle 0x49ef58
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x11]
mov dword [ebp - 0x44], eax
mov eax, dword [0x568bb0]
mov eax, dword [eax]
mov edx, dword [ebp - 0x40]
imul edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x40]
mov ecx, edx
cdq
idiv ecx
mov eax, edx
mov edx, dword [ebp - 0x44]
inc edx
mov ecx, edx
cdq
idiv ecx
add dword [ebp - 0x3c], eax
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
test byte [eax + edx*4 + 0xf], 0x80
jbe 0x49efbc
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
test byte [eax + edx*4 + 0xe], 0x7f
jbe 0x49efbc
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
mov al, byte [eax + edx*4 + 0xf]
and al, 0x7f
and eax, 0xff
add dword [ebp - 0x3c], eax
dec dword [ebp - 0x3c]
cmp byte [ebp - 0x5d], 0
jne 0x49f0d2
mov eax, dword [0x568774]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.0048e220
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x49f180
mov eax, dword [ebp - 0x58]
mov si, 0xfff9
call fcn.004043ac
cmp eax, 0x30
jne 0x49f00e
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
cmp eax, 0x20
je 0x49f180
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
mov edx, dword [ebp - 0x1c]
add edx, 0x20
sub edx, eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x58]
mov si, 0xfff9
call fcn.004043ac
add eax, dword [ebp - 0x18]
test eax, eax
jle 0x49f091
cmp dword [ebp - 0x18], 0x320
jg 0x49f091
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
add eax, dword [ebp - 0x20]
test eax, eax
jle 0x49f091
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jge 0x49f091
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x58]
mov si, 0xfffa
call fcn.004043ac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00477b4c
jmp 0x49f180
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jge 0x49f180
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x58]
mov si, 0xfffa
call fcn.004043ac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.00477b4c
jmp 0x49f180
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x568774]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.0048e308
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x49f180
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x4c]
sub eax, 0x44
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0
jle 0x49f15b
mov eax, dword [ebp - 0x58]
mov si, 0xfff8
call fcn.004043ac
add eax, dword [ebp - 0x20]
test eax, eax
jle 0x49f15b
mov eax, dword [ebp - 0x58]
mov si, 0xfff9
call fcn.004043ac
add eax, dword [ebp - 0x18]
cmp eax, 0x320
jge 0x49f15b
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jge 0x49f15b
mov eax, dword [ebp - 0x58]
push eax
push 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x48]
sub edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
call fcn.00486830
jmp 0x49f180
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jge 0x49f180
mov eax, dword [ebp - 0x58]
push eax
push 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x48]
sub edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
call fcn.00486830
add dword [ebp - 0x18], 0x30
inc dword [ebp - 0xc]
dec dword [ebp - 0x80]
jne 0x49ee60
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae60]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
cmp eax, dword [ebp - 0x10]
jl 0x49f5c6
mov eax, dword [0x5689b4]
cmp byte [eax], 0
jne 0x49f5c6
mov eax, dword [0x568878]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49f24a
inc eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x568878]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
cmp eax, dword [ebp - 0x10]
jne 0x49f242
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + ecx*2]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x70]
mov si, 0xffff
call fcn.004043ac
inc dword [ebp - 0x14]
dec dword [ebp - 0x80]
jne 0x49f1df
mov eax, dword [0x568a48]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49f41c
inc eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x568a48]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x49f410
mov eax, dword [ebp - 0x74]
movzx eax, word [eax + 6]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
cmp eax, dword [ebp - 0x10]
jne 0x49f410
mov eax, dword [ebp - 0x74]
movzx edx, word [eax + 8]
mov eax, dword [0x568664]
mov eax, dword [eax]
call fcn.0047c004
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x49f410
mov eax, dword [ebp - 0x74]
movzx eax, word [eax + 4]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
shl eax, 4
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x5688e8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x74]
jne 0x49f3ae
mov eax, dword [ebp - 0x5c]
push eax
push 2
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov si, 0xfff8
call fcn.004043ac
sar eax, 1
jns 0x49f316
adc eax, 0
mov edx, dword [ebp - 0x28]
add edx, 0x10
sub edx, eax
push edx
mov eax, dword [ebp - 0x5c]
mov si, 0xfff9
call fcn.004043ac
sar eax, 1
jns 0x49f332
adc eax, 0
mov edx, dword [ebp - 0x24]
add edx, 0x18
sub edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
pop ecx
call fcn.00486904
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x5c]
mov si, 0xfffa
call fcn.004043ac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [0x568a18]
mov eax, dword [eax]
push eax
push 1
mov eax, dword [ebp - 0x5c]
mov si, 0xfff8
call fcn.004043ac
sar eax, 1
jns 0x49f37c
adc eax, 0
mov edx, dword [ebp - 0x28]
add edx, 0x10
sub edx, eax
push edx
mov eax, dword [ebp - 0x5c]
mov si, 0xfff9
call fcn.004043ac
sar eax, 1
jns 0x49f398
adc eax, 0
mov edx, dword [ebp - 0x24]
add edx, 0x18
sub edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
pop ecx
call fcn.00477b4c
jmp 0x49f410
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x5c]
mov si, 0xfffa
call fcn.004043ac
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 1
mov eax, dword [ebp - 0x5c]
mov si, 0xfff8
call fcn.004043ac
sar eax, 1
jns 0x49f3e0
adc eax, 0
mov edx, dword [ebp - 0x28]
add edx, 0x10
sub edx, eax
push edx
mov eax, dword [ebp - 0x5c]
mov si, 0xfff9
call fcn.004043ac
sar eax, 1
jns 0x49f3fc
adc eax, 0
mov edx, dword [ebp - 0x24]
add edx, 0x18
sub edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
pop ecx
call fcn.00477b4c
inc dword [ebp - 0x14]
dec dword [ebp - 0x80]
jne 0x49f268
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49f563
inc eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0xbc]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
mov edx, dword [ebp - 0x68]
sub eax, dword [edx + 0xc0]
cmp eax, dword [ebp - 0x10]
jne 0x49f557
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0xb8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
shl eax, 4
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x68]
add eax, dword [edx + 0x98]
add eax, 0x18
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 0x68]
cmp byte [eax + 0x20], 0
je 0x49f4e5
mov eax, dword [ebp - 0x1c]
add eax, 0x20
mov edx, dword [ebp - 0x68]
add eax, dword [edx + 0x9c]
add eax, 0x10
sub eax, 0x3c
mov edx, dword [ebp - 0x68]
mov edx, dword [edx + 0xc0]
shl edx, 5
add eax, edx
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x90], eax
jmp 0x49f511
mov eax, dword [ebp - 0x1c]
add eax, 0x20
mov edx, dword [ebp - 0x68]
add eax, dword [edx + 0x9c]
add eax, 0x10
sub eax, 0x5f
mov edx, dword [ebp - 0x68]
mov edx, dword [edx + 0xc0]
shl edx, 5
add eax, edx
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x90], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0xc0]
shl eax, 5
add eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0xb8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + ecx*2]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x68]
mov si, 0xfff2
call fcn.004043ac
inc dword [ebp - 0x14]
dec dword [ebp - 0x80]
jne 0x49f43c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a870]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49f5c6
inc eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a870]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x2c]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
cmp eax, dword [ebp - 0x10]
jne 0x49f5be
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x6c]
mov si, 0xfffd
call fcn.004043ac
inc dword [ebp - 0x14]
dec dword [ebp - 0x80]
jne 0x49f57f
add dword [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
dec dword [ebp - 0x7c]
jne 0x49edfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f5f4
xor eax, eax
push ebp
push 0x49f878
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x568668]
cmp byte [eax], 0
je 0x49f86e
mov eax, dword [ebp - 0x34]
sub eax, 0x80
mov dword [ebp - 0x1c], eax
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae58]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae78]
sub eax, 4
mov edx, dword [0x568b80]
mov edx, dword [edx]
mov edx, dword [edx + 0x2ae60]
mov ecx, dword [0x568b80]
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x2ae78]
add edx, 0x23
sub edx, eax
jl 0x49f759
inc edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x49f676
add dword [ebp - 0x1c], 0x20
jmp 0x49f74d
mov eax, dword [ebp - 0x30]
sub eax, 0xf0
mov dword [ebp - 0x18], eax
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ae54]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae74]
sub eax, 5
mov edx, dword [0x568b80]
mov edx, dword [edx]
mov edx, dword [edx + 0x2ae5c]
mov ecx, dword [0x568b80]
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x2ae74]
add edx, 5
sub edx, eax
jl 0x49f749
inc edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x49f73d
cmp dword [ebp - 0xc], 0x78
jge 0x49f73d
cmp dword [ebp - 0x10], 0
jl 0x49f73d
cmp dword [ebp - 0x10], 0x78
jge 0x49f73d
imul eax, dword [ebp - 0xc], 0x16b
mov edx, dword [0x568b80]
mov edx, dword [edx]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
movzx eax, byte [eax + edx*4 + 0x13]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jle 0x49f73d
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
push 0
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2ae78]
add ecx, dword [ebp - 0x10]
mov eax, dword [0x568b80]
mov eax, dword [eax]
mov edx, dword [eax + 0x2ae74]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0049da94
add dword [ebp - 0x18], 0x30
inc dword [ebp - 0xc]
dec dword [ebp - 0x80]
jne 0x49f6cd
add dword [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
dec dword [ebp - 0x7c]
jne 0x49f667
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
cmp dword [eax + 8], 0
jle 0x49f813
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49f86e
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x68], eax
mov eax, dword [0x5685c0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x68]
je 0x49f7bc
mov eax, dword [ebp - 0x68]
mov si, 0xfff4
call fcn.004043ac
test eax, eax
jle 0x49f805
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x98]
push eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x9c]
push eax
mov eax, dword [ebp - 0x68]
mov si, 0xfff4
call fcn.004043ac
push eax
mov eax, dword [0x5685c0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x68]
sete al
push eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0xbc]
mov eax, dword [ebp - 0x68]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 4]
call fcn.0049da94
inc dword [ebp - 0x14]
dec dword [ebp - 0x7c]
jne 0x49f78c
jmp 0x49f86e
mov eax, dword [0x5685c0]
cmp dword [eax], 0
je 0x49f86e
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
push eax
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov eax, dword [eax + 0x9c]
push eax
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov si, 0xfff4
call fcn.004043ac
push eax
push 1
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 4]
call fcn.0049da94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f88c
mov eax, dword [0x5689b4]
cmp byte [eax], 0
jne 0x49fa80
xor eax, eax
push ebp
push 0x49fa6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5687d0]
cmp byte [eax], 0
jne 0x49f920
mov eax, dword [0x5685c0]
mov eax, dword [eax]
test byte [eax + 0x1e], 0x80
jne 0x49f920
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov eax, dword [eax + 0xbc]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae58]
dec eax
shl eax, 5
add eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov eax, dword [eax + 0xb8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + ecx*2]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [0x5685c0]
mov eax, dword [eax]
mov si, 0xfff2
call fcn.004043ac
mov eax, dword [0x568660]
cmp dword [eax], 0
je 0x49f9c1
mov edx, dword [0x568660]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a10c0
test al, al
je 0x49f9c1
mov eax, dword [0x568660]
mov eax, dword [eax]
mov edx, dword [0x5685c0]
cmp eax, dword [edx]
je 0x49f9c1
mov eax, dword [0x568660]
mov eax, dword [eax]
test byte [eax + 0x1e], 0x80
jne 0x49f9c1
mov eax, dword [0x568660]
mov eax, dword [eax]
mov eax, dword [eax + 0xbc]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae58]
dec eax
shl eax, 5
add eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [0x568660]
mov eax, dword [eax]
mov eax, dword [eax + 0xb8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + ecx*2]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [0x568660]
mov eax, dword [eax]
mov si, 0xfff2
call fcn.004043ac
mov eax, dword [0x568958]
cmp dword [eax], 0
je 0x49fa62
mov edx, dword [0x568958]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.004a10c0
test al, al
je 0x49fa62
mov eax, dword [0x568958]
mov eax, dword [eax]
mov edx, dword [0x5685c0]
cmp eax, dword [edx]
je 0x49fa62
mov eax, dword [0x568958]
mov eax, dword [eax]
test byte [eax + 0x1e], 0x80
jne 0x49fa62
mov eax, dword [0x568958]
mov eax, dword [eax]
mov eax, dword [eax + 0xbc]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae58]
dec eax
shl eax, 5
add eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [0x568958]
mov eax, dword [eax]
mov eax, dword [eax + 0xb8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + ecx*2]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [0x568958]
mov eax, dword [eax]
mov si, 0xfff2
call fcn.004043ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49fa80
xor eax, eax
push ebp
push 0x49fc06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49fb19
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a860]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0xbc]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae58]
dec eax
shl eax, 5
add eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0xb8]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
mov ecx, eax
shl ecx, 4
lea ecx, [ecx + ecx*2]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x68]
mov si, 0xfff1
call fcn.004043ac
inc dword [ebp - 0x14]
dec dword [ebp - 0x7c]
jne 0x49faaa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a86c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49fb8e
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5a86c]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x6c]
mov si, 0xfffd
call fcn.004043ac
mov eax, dword [0x568668]
cmp byte [eax], 0
je 0x49fb86
push 0
push 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
call fcn.0049da94
inc dword [ebp - 0x14]
dec dword [ebp - 0x7c]
jne 0x49fb35
mov eax, dword [0x568668]
cmp byte [eax], 0
je 0x49fbfc
mov eax, dword [0x568878]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49fbfc
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x568878]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x34], 0
jle 0x49fbf4
push 0
push 0
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
push eax
push 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.0049da94
inc dword [ebp - 0x14]
dec dword [ebp - 0x7c]
jne 0x49fbb5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49fc1a
xor eax, eax
push ebp
push 0x49fda3
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, 1
call fcn.00486354
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x49fd84
mov eax, dword [ebp - 0x78]
call fcn.00477780
mov eax, dword [0x568a48]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49fd84
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x568a48]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004192fc
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x49fd78
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x74]
sub eax, dword [edx + 0xc]
cmp eax, 0x1388
jbe 0x49fcb5
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x74]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x74]
mov byte [eax + 0x10], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x74]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x74]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x74]
cmp byte [eax + 0x10], 0
je 0x49fd78
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x74]
sub eax, dword [edx + 0x14]
cmp eax, 0x14
jb 0x49fce3
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x74]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x74]
inc dword [eax + 0x18]
mov eax, dword [ebp - 0x74]
movzx eax, word [eax + 4]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae54]
shl eax, 4
lea eax, [eax + eax*2]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x74]
movzx eax, word [eax + 6]
mov edx, dword [0x568b80]
mov edx, dword [edx]
sub eax, dword [edx + 0x2ae58]
dec eax
shl eax, 5
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x18], 0
jl 0x49fd71
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x18], 0xa
jge 0x49fd71
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax + 0x18]
add edx, 0x19a
mov eax, dword [0x568484]
mov eax, dword [eax]
call fcn.0047bdf0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x78]
call fcn.0047782c
jmp 0x49fd78
mov eax, dword [ebp - 0x74]
mov byte [eax + 0x10], 0
inc dword [ebp - 0x14]
dec dword [ebp - 0x7c]
jne 0x49fc62
mov eax, dword [ebp - 0x78]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
call fcn.00486830
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49fdb7
mov eax, dword [0x568858]
cmp dword [eax], 0
jle 0x49fded
mov eax, dword [0x568858]
cmp dword [eax], 1
jne 0x49fddd
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0049db90
jmp 0x49fded
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0049db90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fe1a
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.00405818
lea eax, [ebp - 0x64]
call fcn.00404ff8
ret