Function at 0x101e63f
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x103d350], edi
mov dword [ebp - 0x44], edi
jne 0x101e65f
call fcn.0101bd6d
xor ebx, ebx
inc ebx
cmp dword [0x103d580], edi
je 0x101e695
cmp dword [ebp + 0x14], edi
je 0x101e695
xor esi, esi
cmp esi, 0x64
jge 0x101e68d
push edi
inc esi
call fcn.0102c41b
push 0x64
call dword [0x1001264]
cmp dword [0x103d580], edi
jne 0x101e671
mov dword [0x103b794], ebx
jmp 0x101e69b
mov dword [0x103b794], edi
cmp dword [0x103d580], edi
jne 0x101e700
mov eax, dword [0x103d498]
push edi
push dword [0x103d4e8]
lea eax, [eax + eax*4]
push edi
shl eax, 4
push dword [eax + 0x103d5a0]
push 0x78
push 0x78
push 0xa
push 0xa
push 0x80000000
push edi
push dword [0x103abb4]
push 8
call dword [0x1001430]
cmp dword [0x103b768], 2
mov dword [0x103d580], eax
jne 0x101e6ec
mov dword [0x103b798], ebx
cmp eax, edi
jne 0x101e700
push ebx
push 0x2330
call fcn.01026a0b
jmp 0x101ec9e
cmp dword [ebp + 0x14], edi
jne 0x101e7b3
cmp dword [0x103b78c], edi
je 0x101e7ac
cmp dword [0x103b768], 2
jne 0x101e740
cmp dword [0x103d560], edi
jne 0x101e740
push edi
push 0x2710
push 0x63
push dword [0x103d5a0]
mov dword [0x103d560], ebx
call dword [0x10013b8]
push dword [0x103d580]
mov dword [0x103b78c], edi
call fcn.0100d5be
push eax
call fcn.01019b89
cmp dword [0x103b798], edi
je 0x101e764
call fcn.010238ad
push dword [0x103d580]
call dword [fcn.01001400]
cmp dword [0x103b768], 2
mov dword [0x103d580], edi
je 0x101e7ac
mov eax, dword [0x103d498]
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x103d5a4]
call fcn.0100d6a0
mov eax, dword [0x103d498]
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x103d5a0]
call dword [fcn.0100137c]
mov eax, ebx
jmp 0x101ed21
cmp dword [0x103b768], 2
mov ebx, dword [ebp + 0xc]
je 0x101e7dc
push edi
call fcn.0101fa2d
call fcn.0100d726
cmp ebx, edi
mov dword [0x103b788], eax
je 0x101e7d8
mov esi, dword [ebx + 8]
jmp 0x101e7e4
mov esi, eax
jmp 0x101e7e4
mov dword [0x103b788], edi
xor esi, esi
cmp dword [ebp + 8], edi
jne 0x101e813
call fcn.0100d6d7
cmp ebx, edi
mov dword [ebp - 0x18], eax
je 0x101e809
cmp dword [0x103d378], edi
jne 0x101e809
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.010120f4
jmp 0x101e813
lea eax, [ebp - 0x40]
push eax
call dword [0x10014a0]
cmp dword [0x103d378], edi
je 0x101e840
push 0x103d378
push esi
call dword [fcn.01001488]
mov eax, dword [0x103d37c]
lea ecx, [eax - 0xa]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [0x103d378]
mov dword [0x103d378], edi
jmp 0x101e875
cmp dword [ebp + 8], edi
jne 0x101e851
cmp dword [ebp - 0x38], edi
jne 0x101e887
cmp dword [ebp - 0x34], edi
jne 0x101e887
jmp 0x101e854
mov dword [ebp - 0x18], edi
lea eax, [ebp - 8]
push eax
call dword [0x1001438]
lea eax, [ebp - 8]
push eax
push esi
call dword [fcn.01001488]
mov eax, dword [ebp - 4]
lea ecx, [eax - 0xa]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 8]
lea edx, [ecx - 0x19]
add eax, 0xa
add ecx, 0x19
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], eax
lea eax, [ebx + ecx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [0x1001330]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x18]
push 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.01019e3e
mov esi, eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], esi
call fcn.0100e7d3
cmp esi, edi
push dword [0x103d580]
jne 0x101e908
call dword [fcn.01001400]
mov dword [0x103d580], edi
jmp 0x101ec9e
push esi
call fcn.01019c0d
push esi
push dword [0x103d580]
call fcn.0100d565
push dword [0x103d580]
call fcn.0100d6a0
cmp dword [0x103b768], 2
lea eax, [ebp - 0x5c]
je 0x101e965
push eax
mov eax, dword [0x103d498]
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x103d5a0]
call dword [0x100135c]
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x103d498]
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x103d5a0]
call fcn.0101e065
jmp 0x101e978
push 0xf0
push 0x140
push edi
push edi
push eax
call dword [0x10013a8]
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [0x1001320]
cmp eax, edi
mov dword [ebp - 0x84], 0x28
je 0x101e9be
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [0x1001324]
test eax, eax
je 0x101e9be
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x6c]
sub edx, esi
sub eax, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
jmp 0x101e9e1
mov eax, dword [0x103d350]
mov ecx, dword [0x103d34c]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
mov edx, eax
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
lea ecx, [edx - 0x1e]
add eax, 0xf
cmp eax, ecx
mov dword [ebp + 0xc], eax
jl 0x101e9f7
mov dword [ebp + 0xc], ecx
mov eax, 0xfa
cmp dword [ebp + 0xc], eax
jg 0x101ea04
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffc
mov dword [ebp - 0xc], eax
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, edx
cdq
sub eax, edx
mov dword [ebp + 0x14], eax
sar dword [ebp + 0x14], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, edi
sub ecx, eax
add ecx, dword [ebp - 0x14]
add edx, ebx
cmp ecx, edx
jge 0x101ebbe
sub eax, dword [ebp - 0xc]
add edi, 2
sub eax, ebx
cmp eax, edi
jg 0x101ebd2
mov dword [ebp - 4], edi
mov eax, dword [ebp - 8]
sub eax, esi
cmp dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
cdq
jge 0x101ebda
sub esi, dword [ebp + 0xc]
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
sar ecx, 1
sub eax, ecx
mov ecx, dword [ebp - 0x10]
lea esi, [esi + ecx - 2]
cmp eax, esi
jl 0x101ebf0
mov dword [ebp - 8], esi
push 4
push dword [ebp - 0xc]
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [0x103d580]
call dword [fcn.01001328]
lea eax, [ebp - 0x28]
push eax
push dword [0x103d580]
call dword [0x100135c]
add dword [ebp - 0x24], 3
add dword [ebp - 0x28], 3
sub dword [ebp - 0x20], 8
sub dword [ebp - 0x1c], 8
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call fcn.010198aa
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x4c]
push dword [0x103d580]
call fcn.010244ec
test eax, eax
je 0x101ec8d
push dword [ebp - 0x18]
call fcn.010116cb
add eax, 6
lea ecx, [eax + 0xa]
mov eax, dword [ebp - 0x10]
add eax, 0xffffffe2
add edx, 6
cmp ecx, eax
mov dword [ebp + 0xc], ecx
jl 0x101eb00
mov dword [ebp + 0xc], eax
mov eax, 0xfa
cmp dword [ebp + 0xc], eax
jg 0x101eb0d
mov dword [ebp + 0xc], eax
lea ecx, [edx + 0xa]
mov edx, dword [ebp - 0x14]
lea eax, [edx - 4]
cmp ecx, eax
jl 0x101eb1c
mov ecx, eax
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x2c]
mov esi, edi
sub esi, eax
add esi, edx
lea edx, [ecx + ebx]
cmp esi, edx
jge 0x101ebf8
sub eax, ecx
sub eax, ebx
lea edx, [edi + 2]
cmp eax, edx
jg 0x101ec0d
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x70]
sub eax, esi
cmp dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
cdq
jge 0x101ec15
sub eax, edx
mov edx, dword [ebp - 0x30]
sar eax, 1
mov dword [ebp - 0xc], edx
sub dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, esi
sub eax, dword [ebp + 0xc]
lea eax, [eax + edx - 2]
mov edx, dword [ebp - 0xc]
cmp edx, eax
jl 0x101ec29
mov dword [ebp - 8], eax
cmp dword [ebp - 0x44], 0
jne 0x101eca2
mov eax, ecx
shl eax, 3
cmp eax, dword [ebp + 0xc]
jge 0x101ec31
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
add ecx, 0xfffffffc
cmp eax, ecx
mov dword [ebp - 0xc], eax
jl 0x101ebb2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x44], 1
jmp 0x101ea1f
sub edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
lea edi, [edi + ecx - 2]
add eax, ebx
cmp eax, edi
jge 0x101ea46
mov dword [ebp - 4], eax
jmp 0x101ea49
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
sar ecx, 1
sub eax, ecx
add esi, 2
cmp eax, esi
jle 0x101ea78
mov dword [ebp - 8], eax
jmp 0x101ea7b
mov esi, dword [ebp - 0x14]
mov edx, edi
sub edx, ecx
lea edx, [edx + esi - 2]
add eax, ebx
cmp eax, edx
jge 0x101eb42
mov dword [ebp - 4], eax
jmp 0x101eb45
sub eax, edx
mov edx, dword [ebp - 0x30]
sar eax, 1
sub edx, eax
lea eax, [esi + 2]
cmp edx, eax
jle 0x101eb7e
mov dword [ebp - 8], edx
jmp 0x101eb81
cmp ecx, dword [ebp + 0xc]
jle 0x101eca2
mov eax, dword [ebp - 0x10]
cdq
push 3
pop ebx
idiv ebx
mov edx, dword [ebp + 0xc]
shl eax, 1
cmp edx, eax
jge 0x101eca2
mov ebx, ecx
cmp edx, eax
jge 0x101ec5b
add edx, 0x32
sub ecx, 0x32
cmp ecx, edx
mov dword [ebp + 0xc], edx
jg 0x101ec4a
mov eax, dword [ebp - 8]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
lea ebx, [esi + eax]
cmp ecx, ebx
jl 0x101ec7e
mov ecx, esi
sub ecx, edx
lea eax, [ecx + eax - 1]
cmp dword [ebp - 8], eax
jle 0x101ec7e
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x44], 1
jmp 0x101ea1f
xor eax, eax
push esi
inc eax
push eax
push esi
push esi
mov dword [0x103b78c], eax
call fcn.0101e63f
xor eax, eax
jmp 0x101ed21
push 4
push ecx
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push dword [0x103d580]
call dword [fcn.01001328]
lea eax, [ebp - 0x28]
push eax
push dword [0x103d580]
call dword [0x100135c]
add dword [ebp - 0x24], 3
add dword [ebp - 0x28], 3
sub dword [ebp - 0x20], 8
sub dword [ebp - 0x1c], 8
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call fcn.010198aa
push dword [0x103d580]
xor esi, esi
inc esi
mov dword [0x103b78c], esi
call dword [fcn.010013d4]
push dword [0x103d580]
call dword [fcn.0100137c]
push 5
push dword [0x103d580]
call dword [0x10013bc]
push esi
call fcn.0101df60
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10