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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0xb07014]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push 0x800
mov ebx, ecx
mov dword [esp + 0x80], esi
movlpd qword [esp + 0x44], xmm0
call fcn.004cc749
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
jne 0x45fefd
mov ecx, dword [esp + 0x40]
mov eax, esi
mov dword [esi], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], ecx
jmp 0x4610a8
call fcn.004392d4
mov byte [esp + 0x27], al
call fcn.00413eb7
mov edi, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe8]
mov byte [esp + 0x5b], al
xor eax, eax
mov esi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
mov dword [ebx + 0xac], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x50], eax
jne 0x45ff48
test byte [ebx + 0x44], 2
mov dword [esp + 0x10], ecx
je 0x45ffce
cmp byte [ebp + 0x10], 0
mov edx, dword [ebx + 0x118]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edx
lea eax, [edx + ecx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
lea eax, [edx + edi]
mov dword [esp + 0x38], eax
je 0x45ffc0
push ecx
mov eax, esp
lea esi, [esp + 0x30]
push ecx
push 0x5000000d
sub esp, 0x10
mov edi, esp
mov dword [eax], 0x4f4b10
push 0x7402
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, 0x52f844
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov eax, dword [ebx + 0x118]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xe8]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x124]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x54], 0
je 0x4600bc
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
sub eax, ecx
cmp dword [ebp + 0xc], 0x1869f
mov dword [esp + 0x10], eax
jne 0x45fff8
mov eax, dword [ebx + 0x180]
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0xbc]
push 0x800
push dword [esp + 0x18]
push dword [ebx + 0x54]
call fcn.0045fd3e
push dword [esp + 0x10]
lea eax, [esp + 0x44]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x1c]
push 0x810
push 0xffffffffffffffff
push esi
push eax
call fcn.0045fbfd
mov eax, dword [ebx + 0x118]
mov edx, dword [esp + 0x44]
cmp edx, eax
mov dword [esp + 0x30], edi
cmovl edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x40]
cmp byte [ebp + 0x10], 0
lea ecx, [edx + edi]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
je 0x460092
push ecx
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov dword [eax], esi
mov edi, esp
lea esi, [esp + 0x48]
push 0x7401
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, 0x52f844
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov eax, ecx
sub eax, edi
add edi, dword [esp + 0x20]
cmp eax, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmovge edi, ecx
add edi, dword [ebx + 0x12c]
test eax, eax
mov dword [esp + 0x18], edi
cmovg esi, eax
mov dword [esp + 0x28], esi
cmp dword [ebx + 0x58], 0
je 0x4601af
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebx + 0xe8]
mov esi, dword [esp + 0x1c]
sub eax, esi
cmp ecx, 0x1869f
jne 0x4600e5
mov eax, dword [ebx + 0x184]
push eax
push dword [ebx + 0xc0]
lea eax, [esp + 0x48]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [ebx + 0x58]
push eax
call fcn.0046120b
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add ecx, esi
add edx, edi
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], edx
je 0x460183
mov ecx, 0x52f828
mov edx, 0x52f844
mov eax, ecx
mov cl, byte [esp + 0x27]
test cl, cl
cmove eax, edx
mov dword [esp + 0x48], eax
jne 0x46014a
push dword [esp + 0x14]
mov ecx, ebx
call fcn.004612d3
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x2c]
push ecx
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], edx
push 0x7403
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x6c]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x46019c
cmp dword [ebx + 0x54], 0
jne 0x46019c
mov eax, edx
sub eax, edi
cmp eax, ecx
jge 0x46019c
lea edx, [ecx + edi]
mov esi, dword [esp + 0x28]
mov edi, edx
cmp dword [esp + 0x34], esi
cmovg esi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
sar eax, 1
add edi, eax
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x18], edi
je 0x4602ab
test byte [ebx + 0x44], 0x40
jne 0x4602ab
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
mov esi, dword [esp + 0x1c]
sub eax, esi
push eax
push dword [ebx + 0xc0]
lea eax, [esp + 0x48]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [ebx + 0x78]
push eax
call fcn.0046120b
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
add eax, edi
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x38], eax
je 0x46027b
mov cl, byte [esp + 0x27]
mov eax, 0x52f828
test cl, cl
mov edx, 0x52f844
cmove eax, edx
mov dword [esp + 0x48], eax
jne 0x460242
push dword [esp + 0x14]
mov ecx, ebx
call fcn.004612d3
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x2c]
push ecx
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], edx
push 0x7407
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x6c]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
cmp ecx, esi
mov edi, dword [ebx + 0x13c]
cmovg esi, ecx
mov ecx, dword [ebx + 0x34]
add edi, eax
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x40], eax
mov eax, edi
cdq
idiv ecx
sub ecx, edx
add edi, ecx
mov dword [esp + 0x18], edi
test dword [ebx + 0x44], 0x600
je 0x46034c
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0xe8]
mov eax, dword [esp + 0x1c]
sub ecx, eax
cmp dword [ebp + 0xc], 0x1869f
jne 0x4602d6
mov ecx, dword [ebx + 0x190]
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x140]
add eax, edi
mov dword [esp + 0x30], edi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
je 0x460337
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
mov eax, esp
push ecx
push 0x50000001
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
push 0x740a
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], 0x52f830
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov edi, dword [ebx + 0x12c]
add edi, eax
cmp ecx, esi
mov dword [esp + 0x18], edi
cmovle ecx, esi
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x1c]
add esi, dword [ebx + 0x108]
cmp dword [ebx + 0x68], 0
mov dword [esp + 0x1c], esi
jbe 0x4604b2
xor edx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
sub eax, dword [ebx + 0x100]
sub eax, esi
cmp dword [ebp + 0xc], 0x1869f
mov dword [esp + 0x10], eax
jne 0x460396
mov eax, dword [ebx + 0x188]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebx + 0xc0]
push 0x800
push dword [esp + 0x18]
push dword [eax + edx*8 + 4]
call fcn.0045fd3e
push dword [esp + 0x10]
lea eax, [esp + 0x44]
mov ecx, ebx
push esi
push 0x10
push 0xffffffffffffffff
push dword [esp + 0x24]
push eax
call fcn.0045fbfd
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x104]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
add ecx, dword [ebx + 0x100]
cmp edx, eax
mov dword [esp + 0x30], edi
cmovl edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
lea edx, [ecx + esi]
add eax, edi
mov dword [esp + 0x48], edx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
je 0x460462
cmp dword [esp + 0x20], 0
lea esi, [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, 0x50012409
mov ecx, 0x50032409
cmovne ecx, eax
push ecx
mov eax, esp
push ecx
push ecx
sub esp, 0x10
mov edi, esp
mov dword [eax], edx
mov eax, 0x7420
add ax, word [esp + 0x3c]
movzx eax, ax
movsd dword es:[edi], dword [esi]
push eax
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], 0x52f84c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
cmovle edx, dword [esp + 0x28]
add eax, dword [ebx + 0x134]
mov ecx, edx
mov edx, dword [esp + 0x20]
add edi, eax
inc edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edx
cmp edx, dword [ebx + 0x68]
jb 0x46036e
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
mov dword [esp + 0x28], ecx
mov edi, eax
sar edi, 1
sub edi, dword [ebx + 0x134]
add edi, dword [esp + 0x48]
cmp dword [ebx + 0x5c], 0
mov byte [ebx + 0xe6], 0
mov dword [esp + 0x20], 0x740b
jbe 0x46073b
test byte [ebx + 0x44], 0x30
je 0x46073b
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x40], eax
mov eax, edi
cdq
idiv ecx
sub ecx, edx
add edi, ecx
cmp dword [ebx + 0x68], 0
mov dword [esp + 0x18], edi
jbe 0x460507
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [ebx + 0x5c], ecx
jbe 0x46072e
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x60]
shl ecx, 3
push 0x800
push edi
mov dword [esp + 0x58], ecx
push dword [ecx + eax + 4]
call fcn.0045fd3e
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.0045fcc7
mov edx, dword [ebx + 0xf8]
add edx, edx
test byte [ebx + 0x44], 0x20
mov dword [esp + 0x48], edx
jne 0x46058f
mov eax, dword [ebx + 0x128]
add eax, dword [ebx + 0x11c]
add edx, eax
mov dword [esp + 0x48], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
sub eax, edx
sub eax, esi
cmp dword [ebp + 0xc], 0x1869f
mov dword [esp + 0x74], eax
jne 0x4605b5
mov eax, dword [ebx + 0x18c]
sub eax, edx
mov dword [esp + 0x74], eax
push eax
push dword [ebx + 0xbc]
lea eax, [esp + 0x88]
mov ecx, ebx
push 0x10
push dword [esp + 0x1c]
push dword [esp + 0x38]
push eax
call fcn.0045fbfd
push dword [esp + 0x74]
mov ecx, ebx
push dword [ebx + 0xc0]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [esp + 0x34]
push 0x810
push dword [esp + 0x84]
push dword [esp + 0x6c]
push eax
call fcn.0045fbfd
mov edx, dword [eax]
cmp esi, edx
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x178]
cmovg edx, esi
add edx, dword [esp + 0x48]
cmp edx, eax
cmovl edx, eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0xfc]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
lea eax, [edi + eax*2]
mov edi, dword [ebx + 0x34]
add ecx, eax
mov eax, dword [ebx + 0x30]
add ecx, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x5c], eax
mov eax, ecx
cdq
idiv edi
sub edi, edx
add edi, ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x70], edi
je 0x460705
mov eax, dword [ebx + 0x60]
add eax, dword [esp + 0x50]
cmp byte [esp + 0x5b], 0
je 0x46069c
mov eax, dword [eax]
cmp eax, dword [ebx + 0x64]
jne 0x460690
or dword [ebx + 0xac], 0xffffffff
mov edx, 0x5003240f
mov eax, 0x5001240f
jmp 0x4606c3
mov edx, 0x5003240e
mov eax, 0x5001240e
jmp 0x4606c3
mov byte [ebx + 0xe6], 1
mov eax, dword [eax]
cmp eax, dword [ebx + 0x64]
jne 0x4606b9
mov eax, dword [esp + 0x3c]
add eax, 0x740b
mov dword [ebx + 0xac], eax
mov edx, 0x5003240b
mov eax, 0x5001240b
cmp dword [esp + 0x3c], 0
lea esi, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x18]
cmovne edx, eax
mov eax, esp
push ecx
push edx
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
mov eax, 0x740b
add ax, word [esp + 0x58]
movzx eax, ax
movsd dword es:[edi], dword [esi]
push eax
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], 0x52f84c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
add eax, esi
cmp eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cmovle eax, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [ebx + 0x5c]
jb 0x46051e
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
sar eax, 1
add edi, eax
and dword [esp + 0x3c], 0
xor ecx, ecx
mov eax, dword [ebx + 0xe8]
mov dword [ebx + 0x160], edi
add edi, dword [ebx + 0x13c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x78], ecx
je 0x460923
mov ecx, dword [ebx + 0x120]
mov dword [esp + 0x64], eax
add eax, ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x6c], eax
lea eax, [ecx + edi]
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], eax
je 0x4607c2
push ecx
mov eax, esp
lea esi, [esp + 0x68]
push ecx
push 0x5000010d
sub esp, 0x10
mov edi, esp
mov dword [eax], 0x4f4b10
push 0x7405
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, 0x52f844
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov ecx, dword [ebx + 0x120]
mov eax, dword [ebx + 0x128]
mov edi, dword [ebx + 0xc0]
add eax, ecx
mov esi, dword [ebx + 0x17c]
push 0x800
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
push dword [ebx + 0x80]
call fcn.0045fd3e
push esi
push edi
push 0x10
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
call fcn.0045fbfd
mov edi, dword [ebx + 0xc0]
mov esi, dword [ebx + 0x17c]
push 0x800
push dword [esp + 0x18]
push dword [ebx + 0x7c]
call fcn.0045fd3e
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push edi
push 0x10
push 0xffffffffffffffff
push esi
push eax
mov ecx, ebx
call fcn.0045fbfd
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
cmovg eax, dword [esp + 0x50]
cmp dword [esp + 0x54], ecx
cmovg ecx, dword [esp + 0x54]
xor edi, edi
add eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x120]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], edi
cmp ecx, eax
jge 0x460882
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x2c], eax
lea eax, [edi + edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x5c]
add eax, edi
mov dword [esp + 0x10], ecx
add eax, edx
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x38], eax
je 0x4608f9
push ecx
mov eax, esp
push ecx
push 0x50000180
sub esp, 0x10
mov dword [eax], esi
mov edi, esp
lea esi, [esp + 0x48]
push 0x7406
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, 0x52f844
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
xor edx, edx
test ecx, ecx
cmovle ecx, edx
add edi, edi
sub edi, dword [esp + 0x30]
add edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], edi
cmp dword [ebx + 0x74], edx
je 0x460923
add edi, dword [ebx + 0x138]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x74], 0
mov edx, dword [ebx + 0xe8]
mov dword [esp + 0x5c], edx
je 0x460a54
mov edi, dword [ebx + 0xc0]
mov esi, dword [ebx + 0x17c]
push 0x800
push dword [esp + 0x18]
push dword [ebx + 0x74]
call fcn.0045fd3e
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x44]
push edi
push 0x10
push 0xffffffffffffffff
push esi
push eax
mov ecx, ebx
call fcn.0045fbfd
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x100]
mov edx, dword [esp + 0x44]
add eax, ecx
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x104]
cmp edx, eax
mov dword [esp + 0x50], ecx
cmovl edx, eax
mov eax, dword [ebx + 0x170]
mov dword [esp + 0x48], edx
cmp edx, eax
jge 0x4609be
test edi, edi
jne 0x4609be
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
sar edi, 1
mov edx, dword [esp + 0x48]
sar eax, 1
sub edi, eax
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x40]
add eax, 2
mov dword [esp + 0x2c], eax
add esi, 2
lea eax, [edi + ecx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
add eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
lea eax, [edi + edx]
add eax, ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
je 0x460a35
push ecx
mov eax, esp
push ecx
push 0x50012503
sub esp, 0x10
mov dword [eax], esi
mov edi, esp
lea esi, [esp + 0x48]
push 0x7404
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], 0x52f84c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x30]
mov edx, dword [ebx + 0xe8]
add edi, eax
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
cmovle eax, dword [esp + 0x10]
mov ecx, eax
mov esi, dword [ebx + 0x110]
mov eax, dword [ebx + 0x16c]
add esi, ecx
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x460a75
mov esi, dword [ebp + 0xc]
sub esi, eax
sub esi, edx
mov dword [esp + 0x1c], esi
and dword [ebx + 0x16c], 0
xor edx, edx
and dword [ebx + 0x170], 0
xor ecx, ecx
mov eax, dword [ebx + 0x5c]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x460c1b
test byte [ebx + 0x44], 0x30
jne 0x460c1b
test eax, eax
je 0x460c1b
xor eax, eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x60]
mov esi, dword [ebx + 0xc0]
push 0x800
push dword [esp + 0x18]
push dword [eax + ecx + 4]
call fcn.0045fd3e
push 0x270f
push esi
push 0x10
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
call fcn.0045fbfd
mov eax, dword [ebx + 0x174]
mov edx, dword [esp + 0x50]
cmp edx, eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
cmovl edx, eax
mov eax, dword [ebx + 0xf0]
mov dword [esp + 0x80], esi
lea eax, [edx + eax*2]
add esi, eax
mov eax, dword [ebx + 0xf4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebx + 0x30]
add eax, edi
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], eax
mov eax, esi
cdq
idiv ecx
sub ecx, edx
cmp byte [ebp + 0x10], 0
lea edx, [ecx + esi]
mov dword [esp + 0x40], edx
mov dword [esp + 0x88], edx
je 0x460b8d
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x84]
mov eax, esp
push ecx
push 0x50012000
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x3c]
movzx eax, ax
push eax
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], 0x52f84c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov ecx, dword [ebx + 0x10c]
mov eax, dword [esp + 0x1c]
lea esi, [edx + ecx]
sub edx, eax
add edx, ecx
mov dword [esp + 0x1c], esi
add edx, dword [ebx + 0x16c]
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x16c], edx
jne 0x460bc1
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xac], eax
mov esi, dword [ebx + 0x60]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x64]
cmp eax, dword [ecx + esi]
mov esi, dword [esp + 0x1c]
jne 0x460bde
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xac], eax
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebx + 0x170]
sub ecx, edi
cmp ecx, eax
jle 0x460bf9
mov dword [ebx + 0x170], ecx
jmp 0x460bfb
mov ecx, eax
add dword [esp + 0x10], 8
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
add eax, 0xffff8bf5
cmp eax, dword [ebx + 0x5c]
mov eax, dword [esp + 0x10]
jb 0x460ab5
cmp dword [ebx + 0x48], 0
je 0x460de7
movaps xmm0, xmmword [0xae76f0]
xor eax, eax
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xd0], 8
movaps xmm0, xmmword [0xae7710]
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0xd4], 0x86
movaps xmm0, xmmword [0xae7780]
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x10], eax
movaps xmm0, xmmword [0xae7770]
movups xmmword [esp + 0xc0], xmm0
mov eax, dword [esp + eax*4 + 0x90]
test dword [ebx + 0x48], eax
mov eax, dword [esp + 0x10]
je 0x460dcb
movzx eax, word [esp + eax*4 + 0x98]
mov esi, dword [ebx + 0xc0]
push 0x800
push dword [esp + 0x18]
push eax
call fcn.0045fd3e
push 0x270f
push esi
push 0x10
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.0045fbfd
mov eax, dword [ebx + 0x174]
mov edx, dword [esp + 0x48]
cmp edx, eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
cmovl edx, eax
mov eax, dword [ebx + 0xf0]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
lea eax, [edx + eax*2]
add esi, eax
mov eax, dword [ebx + 0xf4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebx + 0x30]
add eax, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], eax
mov eax, esi
cdq
idiv ecx
sub esi, edx
cmp byte [ebp + 0x10], 0
lea edx, [esi + ecx]
mov dword [esp + 0x40], edx
mov dword [esp + 0x6c], edx
je 0x460d6c
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x68]
mov eax, esp
push ecx
push 0x50012000
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movzx eax, word [esp + eax*4 + 0xb0]
push eax
push ecx
movsd dword es:[edi], dword [esi]
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], 0x52f84c
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov ecx, dword [ebx + 0x10c]
mov eax, dword [esp + 0x1c]
lea esi, [edx + ecx]
sub edx, eax
add edx, ecx
mov dword [esp + 0x1c], esi
add dword [ebx + 0x16c], edx
cmp dword [ebx + 0xac], 0
jne 0x460da1
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x94]
mov dword [ebx + 0xac], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x94]
cmp dword [ebx + 0x64], ecx
jne 0x460db7
mov dword [ebx + 0xac], ecx
mov ecx, dword [esp + 0x50]
sub ecx, edi
cmp ecx, dword [ebx + 0x170]
jle 0x460dcb
mov dword [ebx + 0x170], ecx
add eax, 3
mov dword [esp + 0x10], eax
cmp eax, 0x12
jb 0x460c7d
mov edx, dword [ebx + 0x16c]
mov ecx, dword [ebx + 0x170]
test edx, edx
jle 0x460dfb
mov eax, dword [ebx + 0x10c]
sub edx, eax
mov dword [ebx + 0x16c], edx
sub esi, eax
cmp esi, dword [esp + 0x28]
mov edx, dword [ebx + 0x88]
cmovle esi, dword [esp + 0x28]
cmp dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], esi
cmovge ecx, dword [esp + 0x3c]
add edi, ecx
mov ecx, dword [ebx + 0xe8]
mov dword [esp + 0x20], ecx
test edx, edx
je 0x460fa0
mov eax, dword [ebx + 0x13c]
add edi, eax
mov dword [ebx + 0x164], edi
add edi, eax
cmp dword [ebx + 0x84], 0
mov dword [esp + 0x18], edi
jne 0x460e56
test byte [ebx + 0x44], 4
mov dword [esp + 0x10], ecx
je 0x460ed7
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], ecx
lea esi, [eax + ecx]
add eax, edi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
je 0x460ec9
push ecx
mov eax, esp
lea esi, [esp + 0x30]
push ecx
push 0x5000000d
sub esp, 0x10
mov edi, esp
mov dword [eax], 0x4f4b10
push 0x7409
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, 0x52f844
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov eax, dword [ebx + 0xe8]
mov edx, dword [ebx + 0x88]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x128]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
sub eax, ecx
push eax
push dword [ebx + 0xc0]
lea eax, [esp + 0x34]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push edx
push eax
call fcn.0046120b
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x114]
cmp edx, eax
mov dword [esp + 0x30], edi
cmovl edx, eax
mov eax, dword [esp + 0x20]
add edi, edx
mov dword [esp + 0x2c], eax
add eax, ecx
mov dword [esp + 0x18], edi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
je 0x460f8d
mov cl, byte [esp + 0x27]
mov eax, 0x52f828
test cl, cl
mov edx, 0x52f844
cmove eax, edx
mov dword [esp + 0x40], eax
jne 0x460f50
push dword [esp + 0x14]
mov ecx, ebx
call fcn.004612d3
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
push 0x7408
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x64]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0xe8]
cmp eax, esi
mov dword [esp + 0x20], ecx
cmovg esi, eax
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x10], ecx
je 0x461087
test byte [ebx + 0x44], 0x40
mov dword [esp + 0x10], ecx
je 0x461087
mov eax, dword [ebx + 0x13c]
add edi, eax
mov dword [ebx + 0x168], edi
add edi, eax
lea eax, [ecx + ecx]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
lea eax, [esp + 0x2c]
push ecx
push dword [ebx + 0xc0]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [ebx + 0x78]
push eax
call fcn.0046120b
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, edx
mov dword [esp + 0x30], edi
add edi, eax
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], edi
je 0x461078
mov al, byte [esp + 0x27]
mov ecx, 0x52f828
test al, al
mov edx, 0x52f844
cmove ecx, edx
mov dword [esp + 0x40], ecx
jne 0x46103b
push dword [esp + 0x14]
mov ecx, ebx
call fcn.004612d3
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
push 0x7407
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x64]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046125e
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 0xe8]
cmp ecx, esi
mov dword [esp + 0x10], eax
cmovg esi, ecx
push dword [esp + 0x14]
add edi, dword [ebx + 0xec]
call fcn.004cc754
mov eax, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x7c]
add eax, esi
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c71aa
mov esp, ebp
pop ebp
ret 0xc