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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x6a4108]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2f8c]
mov eax, dword [esi + 0xbf8]
mov dword [esp + 0x28], eax
lea ebx, [esi + 0xf50]
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0xf44]
push edi
mov edi, dword [esi + 0xf40]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0x64]
mov ecx, dword [esi + 0xf48]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0x64]
mov ecx, dword [esi + 0xf4c]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xa0], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xa4], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 0x64]
mov dword [esp + 0xb8], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x68], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], eax
mov dword [esi + 0xc04], 0
mov eax, dword [ebx + 0x1740]
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], edi
mov dword [esp + 0xac], 0
test eax, eax
je 0x406b2f
push eax
mov edx, esi
mov ecx, ebx
call fcn.00405c30
add esp, 4
mov eax, dword [edi]
add eax, 5
push eax
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x10]
push 0x7f
dec eax
push eax
call fcn.005c8040
mov eax, dword [edi + 0x14]
add eax, 5
add esp, 0xc
push eax
mov eax, dword [edi + 0x38]
sub eax, dword [edi + 0x24]
push 0x7f
dec eax
push eax
call fcn.005c8040
mov eax, dword [edi + 0x14]
add eax, 5
add esp, 0xc
push eax
mov eax, dword [edi + 0x3c]
sub eax, dword [edi + 0x24]
push 0x7f
dec eax
push eax
call fcn.005c8040
xor edx, edx
add esp, 0xc
mov dword [esp + 0x28], edx
cmp dword [ebx + 0x9e8], edx
jle 0x407054
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
shl eax, 3
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], eax
shl ecx, 4
lea eax, [edi - 1]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x48], eax
mov eax, 1
sub eax, edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x74], eax
cmp dword [esp + 0x60], 1
jle 0x406c08
mov edi, dword [esp + 0x70]
lea ecx, [edi + 0x224]
inc edi
lea eax, [ecx*8]
sub eax, ecx
lea eax, [esi + eax*4]
mov dword [esi + 0xc78], eax
xor eax, eax
cmp edi, dword [esp + 0x60]
cmove edi, eax
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x74]
add eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x1774]
mov dword [esi + 0xc2c], eax
mov eax, dword [esi + 0xc30]
mov ecx, dword [esp + 0x40]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov byte [eax + 8], 0
mov eax, dword [esp + 0x5c]
mov dword [esi + 0xc60], eax
mov dword [esi + 0xc08], 0
mov eax, dword [ebx + 0x9e8]
sub eax, edx
dec eax
shl eax, 7
mov dword [esi + 0xc64], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc0c], eax
lea edx, [eax - 1]
mov eax, dword [esp + 0x48]
add eax, edi
mov dword [esi + 0xc10], ecx
mov dword [esi + 0xc1c], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc18], edx
mov dword [esi + 0xc20], edi
lea ecx, [edi + 1]
mov dword [esi + 0xc14], ecx
sub eax, dword [esi + 0xb9c]
mov dword [esi + 0xc0c], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esi + 0xbb0]
mov dword [esi + 0xc10], eax
sub ecx, dword [esi + 0xbb0]
mov dword [esi + 0xc14], ecx
mov eax, dword [esi + 0xb9c]
mov dword [esi + 0xc24], eax
mov eax, dword [esi + 0xbb0]
mov dword [esi + 0xc28], eax
mov eax, dword [esi + 0xbb0]
mov ecx, dword [esi + 0xb9c]
mov dword [esp + 0x1c], eax
mov eax, 0x10
mov byte [edx], 0x81
add edx, ecx
dec eax
jne 0x406cf2
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
add ebx, edi
lea edi, [eax + eax*2]
mov byte [ebx], 0x81
mov byte [ebx + eax], 0x81
mov byte [ebx + eax*2], 0x81
mov byte [edi + ebx], 0x81
mov edi, dword [esp + 0x48]
add edi, dword [esp + 0x18]
mov byte [ebx + eax*4], 0x81
lea edx, [eax + eax*4]
lea ecx, [eax + eax*2]
mov byte [edx + ebx], 0x81
mov edx, dword [esp + 0x18]
mov byte [ebx + ecx*2], 0x81
mov ebx, dword [esp + 0x1c]
shl eax, 3
sub eax, dword [esp + 0x1c]
mov byte [eax + edi], 0x81
mov edi, dword [esp + 0x18]
mov byte [edi], 0x81
mov byte [edi + ebx], 0x81
mov byte [edi + ebx*2], 0x81
lea edi, [ebx + ebx*2]
mov byte [edi + edx], 0x81
mov edi, ebx
mov ebx, edx
lea edx, [edi + edi*4]
mov byte [ebx + edi*4], 0x81
mov byte [edx + ebx], 0x81
mov byte [ebx + ecx*2], 0x81
mov byte [eax + ebx], 0x81
lea ebx, [esi + 0xf50]
xor edi, edi
cmp dword [ebx + 0x9ec], edi
jle 0x406eef
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], eax
jmp 0x406da0
mov edx, dword [esi + 0xbf8]
mov dword [esi + 0xc58], eax
mov eax, dword [ebx + 0x9ec]
sub eax, edi
dec eax
shl eax, 7
mov dword [esi + 0xc5c], eax
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x68]
mov dword [esi + 0xbc8], ecx
mov dword [esi + 0xbc0], eax
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [esi + 0xbc4], eax
mov al, byte [edx + 2]
cmp al, 1
jb 0x406e20
movzx eax, al
lea ecx, [eax + eax*2]
shl ecx, 2
mov eax, dword [esp + ecx + 0x7c]
add eax, dword [esp + 0x50]
mov dword [esi + 0xb54], eax
mov eax, dword [esp + ecx + 0x80]
add eax, dword [esp + 0x30]
mov dword [esi + 0xb58], eax
mov eax, dword [esp + ecx + 0x84]
add eax, dword [esp + 0x30]
mov dword [esi + 0xb5c], eax
jmp 0x406e3e
mov dword [esi + 0xb54], 0
mov dword [esi + 0xb58], 0
mov dword [esi + 0xb5c], 0
movzx eax, byte [edx + 2]
push ecx
mov eax, dword [esp + eax*4 + 0xb0]
or dword [esi + 0xc7c], eax
mov edx, esi
mov ecx, esi
call fcn.00406340
mov eax, dword [esi + 0xc78]
mov dword [esi + 0xc08], 1
mov eax, dword [eax + 0xc]
add esp, 4
cmp eax, 0x20
jle 0x406e82
cmp eax, 0x40000000
jge 0x406e82
mov eax, 1
jmp 0x406e84
xor eax, eax
or dword [esi + 0xc7c], eax
add dword [esi + 0xc0c], 0x10
add dword [esi + 0xc10], 8
add dword [esi + 0xc14], 8
add dword [esi + 0xc18], 0x10
add dword [esi + 0xc1c], 8
add dword [esi + 0xc20], 8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
add dword [esp + 0x50], 0x10
add dword [esp + 0x30], 8
add dword [esi + 0xbf8], 0x4c
add dword [esi + 0xc2c], 9
add ecx, 8
inc edi
add eax, 0xffffff80
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], eax
cmp edi, dword [ebx + 0x9ec]
jl 0x406da0
mov eax, dword [esi + 0xbc8]
mov edx, dword [esi + 0xbc0]
mov edi, dword [esp + 0x78]
add eax, 8
push eax
mov eax, dword [esi + 0xbc4]
add eax, 8
push eax
add edx, 0x10
mov ecx, edi
call fcn.0040adc0
add dword [esi + 0xbf8], 0x4c
mov edx, dword [esp + 0x30]
add esp, 8
mov dword [esi + 0xc04], 1
cmp dword [ebx + 0x1740], 0
je 0x406ff4
test edx, edx
jle 0x407026
cmp dword [ebx + 0xa28], 0
lea eax, [edx - 1]
mov edx, dword [esp + 0x2c]
jne 0x406f72
push dword [esp + 0x44]
mov ecx, ebx
push dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x58]
push dword [esp + 0x34]
push eax
call fcn.00405dc0
jmp 0x406f86
sub esp, 8
push dword [esp + 0x28]
push ecx
push dword [esp + 0x34]
mov ecx, ebx
push eax
call fcn.00405f30
mov edx, dword [esp + 0x40]
add esp, 0x18
cmp edx, 1
jle 0x406fc2
push dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push dword [esp + 0x14]
mov ecx, edi
call fcn.004068d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add dword [esp + 0x1c], eax
add dword [esp + 0x18], ecx
mov edx, dword [esp + 0x30]
add esp, 8
add dword [esp + 0xc], ecx
jmp 0x406fca
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
mov eax, dword [ebx + 0x9ec]
mov ebx, dword [esp + 0x2c]
imul eax, eax, 0x4c
add dword [esp + 0x34], ecx
add dword [esp + 0x44], ecx
add ebx, 0x4c
add ebx, eax
mov dword [esp + 0x2c], ebx
lea ebx, [esi + 0xf50]
jmp 0x40702a
test edx, edx
jle 0x407026
push dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.004068d0
mov ecx, dword [esp + 0x44]
add dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
add dword [esp + 0x18], ecx
mov edx, dword [esp + 0x30]
add esp, 8
add dword [esp + 0xc], ecx
jmp 0x40702a
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add dword [esp + 0x58], eax
add dword [esp + 0x54], eax
add dword [esp + 0x40], ecx
add dword [esp + 0x18], ecx
add dword [esp + 0x5c], 0xffffff80
inc edx
mov dword [esp + 0x28], edx
cmp edx, dword [ebx + 0x9e8]
jl 0x406bd7
cmp dword [ebx + 0x1740], 0
je 0x4070d5
cmp dword [ebx + 0xa28], 0
lea eax, [edx - 1]
mov edx, dword [esp + 0x2c]
jne 0x40708b
push dword [esp + 0x44]
mov ecx, ebx
push dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x58]
push dword [esp + 0x34]
push eax
call fcn.00405dc0
jmp 0x40709f
sub esp, 8
push dword [esp + 0x28]
push ecx
push dword [esp + 0x34]
mov ecx, ebx
push eax
call fcn.00405f30
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
add esp, 0x18
mov edx, ebx
push dword [esp + 0xc]
mov ecx, edi
push esi
call fcn.004068d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
shl eax, 4
add ebx, eax
mov eax, dword [esp + 0x54]
shl eax, 3
add esp, 8
add esi, eax
add ecx, eax
jmp 0x4070e1
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ecx
push esi
mov edx, ebx
mov ecx, edi
call fcn.004068d0
add esp, 8
mov ecx, edi
call fcn.00406750
mov ecx, edi
call fcn.00406810
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c7124
mov esp, ebp
pop ebp
ret