Function at 0x10068aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3fc
push ebx
mov ebx, dword [esp + 0x404]
push ebp
mov ebp, dword [esp + 0x40c]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
push esi
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov esi, eax
push edi
test ch, 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], esi
jne 0x10068af3
mov edx, eax
and edx, 0xfff83fff
mov dword [esp + 0x10], edx
mov esi, edx
test esi, 0x40000
je 0x10068b1c
or esi, 0x4000
test esi, 0x40000
mov dword [esp + 0x10], esi
je 0x10068b1c
test ah, 8
je 0x10068b1c
or esi, 0x8000
mov dword [esp + 0x10], esi
test esi, 0x4000
je 0x10068b2e
or esi, 0x10000
mov dword [esp + 0x10], esi
test esi, 0x8000
je 0x10068b43
and esi, 0xffffffbf
or esi, 0x20000
mov dword [esp + 0x10], esi
test esi, 0x20000
je 0x10068b55
and esi, 0xfffffeff
mov dword [esp + 0x10], esi
test esi, 0x10000
je 0x10068b67
and esi, 0xffffff7f
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 8]
test dl, 4
jne 0x10068b79
and esi, 0xfffcfe7f
mov dword [esp + 0x10], esi
test cl, 2
jne 0x10068b88
and esi, 0xffff3baf
mov dword [esp + 0x10], esi
test cl, 0x40
je 0x10068b97
and esi, 0xffffcfff
mov dword [esp + 0x10], esi
test esi, 0x20000000
je 0x10068ba9
and esi, 0xffff7fff
mov dword [esp + 0x10], esi
test esi, 0x2000000
je 0x10068bbb
and esi, 0xffffbfff
mov dword [esp + 0x10], esi
xor eax, eax
mov ecx, 0x6a
lea edi, [esp + 0x64]
mov dword [esp + 0x40], eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
shr edx, 2
and edx, 1
mov dword [esp + 0x138], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x64]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x13c], edx
mov edx, dword [ebx + 0x6c]
lea ecx, [esp + 0x24b]
and ecx, 0xffffffc0
mov dword [esp + 0xf8], eax
mov eax, dword [ebx + 0x78]
and esi, 0x1000
not edx
mov dword [esp + 0x1b8], ecx
mov ecx, dword [esp + 0x420]
and edx, 1
mov dword [esp + 0x144], esi
mov dword [esp + 0x1d0], eax
mov eax, dword [0x10151210]
mov dword [esp + 0x1c0], edx
mov edx, dword [ecx + 4]
xor esi, esi
mov dword [esp + 0x134], edi
cmp eax, esi
mov dword [esp + 0x128], edx
je 0x10068c55
call eax
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], esi
cmp ebx, esi
jbe 0x100690ca
mov dword [esp + 0x4c], esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
lea eax, [esi + esi*2]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
shl eax, 3
shl edi, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x34]
xor edx, edx
div ebx
mov ecx, dword [esp + 0x430]
xor edx, edx
mov dword [esp + 0x14], 0
imul eax, ebx
lea eax, [eax + ecx - 1]
div ecx
imul eax, esi
test esi, esi
mov dword [esp + 0x2c], eax
jbe 0x100690a5
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov eax, ecx
add ecx, esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ecx
jmp 0x10068ce3
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x418]
lea esi, [eax + ecx]
mov ecx, dword [ebx + 0x44]
add ecx, eax
add eax, 0x1e8
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x410]
mov dword [esp + 0x54], ecx
lea edi, [esi + 0x144]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x38]
push edi
push ecx
mov ecx, dword [ebp + 0x38]
add eax, edx
add ecx, edx
push eax
push ecx
call dword [0x10151228]
mov edi, dword [edi]
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x148]
add esp, 0x10
cmp edi, eax
mov dword [esp + 0x20], edi
jg 0x10068d44
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x14c]
mov edx, dword [esi + 0x150]
cmp ecx, edx
jg 0x10068d56
mov ecx, edx
cmp dword [esp + 0x20], ecx
jle 0x10068d64
cmp edi, eax
jle 0x10068d76
mov eax, edi
jmp 0x10068d76
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x150]
cmp eax, ecx
jg 0x10068d76
mov eax, ecx
lea edx, [eax*4]
mov eax, dword [esp + 0x144]
test eax, eax
mov dword [esp + 0x20], edx
je 0x10068e1a
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
shr ebx, 1
mov edi, ebx
mov edx, dword [ebp + 0x40]
imul edi, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x418]
add eax, 0x38
push ebx
shl edi, 3
mov ecx, dword [eax + 8]
add edx, edi
add ecx, edi
push ecx
push edx
call dword [0x10151224]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x424]
push ebx
add eax, 0x38
add edx, edi
mov ecx, dword [eax + 4]
add ecx, edi
push ecx
push edx
call dword [0x10151224]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x430]
add ecx, eax
add esp, 0x18
mov dword [esp + 0xf4], ecx
mov edx, dword [esi + 0x154]
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x154], edx
mov eax, dword [esp + 0xf4]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x428]
push ecx
add ebx, 0x38
push edx
mov edx, dword [esp + 0x20]
lea edi, [ebp + 0x38]
push ebx
push edi
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x42c]
push eax
mov eax, dword [esp + 0x40]
push ecx
push esi
push ebp
push edx
push eax
call fcn.1006ac40
add esp, 0x34
test eax, eax
jne 0x10069072
mov edx, dword [esp + 0x418]
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x44]
mov edx, dword [esp + 0x414]
push esi
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x74]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x444]
push eax
push ecx
mov ecx, dword [esp + 0x448]
mov eax, dword [edx]
push edi
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x44c]
push edx
mov ecx, dword [eax]
push ecx
push ebx
call fcn.10069630
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
add esp, 0x3c
test ah, 1
je 0x10068f14
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x42c]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x42c]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push esi
push ecx
call fcn.10071ad0
jmp 0x10068f99
test ah, 0x10
je 0x10068f5a
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x42c]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x42c]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push esi
push ecx
call fcn.10074ce0
jmp 0x10068f99
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x42c]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x42c]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push esi
push ecx
call fcn.10069100
mov eax, dword [esp + 0x174]
add esp, 0x38
test eax, eax
lea edi, [esi + 0x124]
jne 0x10068faf
mov edi, esi
mov esi, dword [esi + 0xec]
mov eax, dword [esp + 0x40]
sub esi, 0
je 0x10069024
sub esi, 2
jne 0x10069072
mov ecx, dword [esp + 0x24]
mov esi, 3
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + esi*8]
cmp ecx, eax
jle 0x10068fe1
mov eax, ecx
jmp 0x10068fec
or edx, 0xffffffff
sub edx, ecx
cmp edx, eax
jle 0x10068fec
mov eax, edx
mov edx, ecx
mov ebx, dword [esp + 0x1c]
imul edx, ecx
mov ecx, dword [edi + esi*8 + 4]
add ebx, edx
cmp ecx, eax
mov dword [esp + 0x1c], ebx
jle 0x10069007
mov eax, ecx
jmp 0x10069012
or edx, 0xffffffff
sub edx, ecx
cmp edx, eax
jle 0x10069012
mov eax, edx
mov edx, ecx
mov ebx, dword [esp + 0x1c]
imul edx, ecx
add ebx, edx
dec esi
mov dword [esp + 0x1c], ebx
jne 0x10068fd6
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 4]
inc ecx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
mov edi, edx
mov esi, ecx
imul edi, edx
imul esi, ecx
add edi, ebx
add edi, esi
cmp ecx, eax
mov dword [esp + 0x1c], edi
jle 0x10069050
mov eax, ecx
jmp 0x1006905b
or esi, 0xffffffff
sub esi, ecx
cmp esi, eax
jle 0x1006905b
mov eax, esi
cmp edx, eax
jle 0x10069063
mov eax, edx
jmp 0x1006906e
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x1006906e
mov eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
jb 0x10068cdb
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x430]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
add edx, ecx
inc eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x30]
add edx, edi
cmp eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edx
jb 0x10068c90
mov eax, dword [esp + 0x40]
push eax
call fcn.10068240
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x120], ecx
mov dword [ebp + 0x124], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3fc
ret