Function at 0x102a811
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
push esi
push edi
lea ecx, [ebp - 0xa8]
call fcn.0101e0f0
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
call fcn.01019631
lea ecx, [ebp - 0x1c]
call fcn.01019631
lea ecx, [ebp - 1]
mov dword [ebp - 0xc], esi
call fcn.0102a760
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x4c], esi
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa8]
push eax
push 0x1c
call fcn.01021c1b
test eax, eax
jge 0x102a879
mov dword [ebp - 8], 1
jmp 0x102aa75
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.0101efa0
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x102aa75
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
lea ecx, [ebp - 0x1c]
call fcn.010196f9
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0101998a
test eax, eax
jne 0x102aa74
push eax
lea eax, [ebp - 0x2c]
push eax
push 3
lea ecx, [ebp - 1]
call fcn.0103aeaf
test eax, eax
mov dword [ebp - 8], eax
jl 0x102aa74
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 1]
call fcn.0103adbf
test eax, eax
mov dword [ebp - 8], eax
jl 0x102aa74
cmp dword [ebp - 0xc], 0
je 0x102aa74
and dword [ebp - 0xc], 0
push 0x5c
pop edi
push edi
lea ecx, [ebp - 0x2c]
call fcn.010198fd
mov esi, eax
test esi, esi
jle 0x102aa6d
push edi
lea ecx, [ebp - 0x2c]
call fcn.0101987f
cmp esi, eax
je 0x102aa6d
mov eax, dword [ebp - 0x2c]
and word [eax + esi*2], 0
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x1c]
call fcn.01019f85
test eax, eax
mov dword [ebp - 8], eax
jl 0x102a991
push edi
lea ecx, [ebp - 0x1c]
call fcn.010198fd
mov esi, eax
test esi, esi
jle 0x102aa10
push edi
lea ecx, [ebp - 0x1c]
call fcn.0101987f
cmp esi, eax
je 0x102aa10
mov eax, dword [ebp - 0x1c]
and word [eax + esi*2], 0
push edi
lea ecx, [ebp - 0x1c]
call fcn.010198fd
mov esi, eax
test esi, esi
jle 0x102aa10
push edi
lea ecx, [ebp - 0x1c]
call fcn.0101987f
cmp esi, eax
je 0x102aa10
mov eax, dword [ebp - 0x1c]
and word [eax + esi*2], 0
lea ecx, [ebp - 0x2c]
call fcn.010196f9
mov esi, eax
xor ecx, ecx
push 2
lea edi, [esi + 2]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0103c774
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x10], ebx
je 0x102aa07
lea eax, [edi + edi]
push eax
push 0
push ebx
call fcn.0101913a
lea eax, [esi + esi]
push eax
push dword [ebp - 0x2c]
push ebx
call fcn.01019146
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.010196f9
mov esi, eax
xor ecx, ecx
push 2
lea edi, [esi + 2]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0103c774
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x20], ebx
jne 0x102aa19
mov dword [ebp - 8], 0x8007000e
jmp 0x102aa74
mov dword [ebp - 8], 1
jmp 0x102aa74
lea eax, [edi + edi]
push eax
push 0
push ebx
call fcn.0101913a
lea eax, [esi + esi]
push eax
push dword [ebp - 0x1c]
push ebx
call fcn.01019146
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], 0x614
call dword [0x1001210]
test eax, eax
je 0x102aa60
mov dword [ebp - 8], 0x80004005
xor eax, eax
cmp dword [ebp - 8], eax
setge al
mov dword [ebp - 0xc], eax
jmp 0x102aa74
mov dword [ebp - 8], 0x8000ffff
pop ebx
mov ecx, dword [ebp + 0xc]
xor esi, esi
cmp ecx, esi
je 0x102aa8c
cmp dword [ebp - 8], esi
jl 0x102aa88
mov eax, dword [ebp - 0xc]
jmp 0x102aa8a
xor eax, eax
mov dword [ecx], eax
cmp dword [ebp - 0x10], esi
je 0x102aa9a
push dword [ebp - 0x10]
call fcn.01018964
pop ecx
cmp dword [ebp - 0x20], esi
pop edi
pop esi
je 0x102aaaa
push dword [ebp - 0x20]
call fcn.01018964
pop ecx
lea ecx, [ebp - 1]
call fcn.0103ad16
lea ecx, [ebp - 0x1c]
call fcn.01019f33
lea ecx, [ebp - 0x2c]
call fcn.01019f33
lea ecx, [ebp - 0xa8]
call fcn.0101c265
mov eax, dword [ebp - 8]
leave
ret 8