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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x4a6ff8]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [0x4ac9b0]
push ebx
mov eax, dword [eax + 0xc]
shr eax, 5
and eax, 1
mov ebx, ecx
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, ebx
shr eax, 4
mov edi, ebx
not eax
push 0
push dword [0x4ac984]
shr edi, 6
and eax, 1
and edi, 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x78], 0
call dword [0x4ab5ec]
mov dword [esp + 0x88], eax
test eax, eax
je 0x4378b5
mov esi, dword [0x4ac994]
shr esi, 4
and esi, 1
mov ecx, 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0xa0], ecx
test ebx, 0x108
je 0x43711f
call fcn.00429370
mov eax, dword [esp + 0x88]
mov ecx, eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
call dword [0x4ab6c0]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xac], eax
call dword [0x4ab6c4]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x80], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x7c], ecx
dec ecx
dec eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x84], eax
test ebx, 0x10c
je 0x4371db
mov eax, dword [0x4ac9b0]
xor esi, esi
cmp dword [eax + 0x2c], esi
jle 0x4371d7
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [0x4ac9b0]
mov edi, dword [eax + 0x30]
test dword [edi + ebx + 0x2c], 0x40000
je 0x4371ae
mov edx, 1
mov ecx, esi
call fcn.0042be80
test dword [edi + ebx + 0x2c], 0x20000
je 0x4371c1
xor edx, edx
mov ecx, esi
call fcn.0042be80
mov eax, dword [0x4ac9b0]
inc esi
add ebx, 0x60
cmp esi, dword [eax + 0x2c]
jl 0x437190
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x6c]
test edi, edi
jne 0x4371fe
test bl, bl
jns 0x4371fe
mov eax, dword [0x4ac9b0]
mov eax, dword [eax + 0x30]
test dword [eax + 0x2c], 0x10000
mov eax, 1
cmove edi, eax
mov dword [esp + 0x38], edi
mov eax, dword [0x4ac9b0]
xor ebx, ebx
test esi, esi
sete bl
mov dword [esp + 0x28], ebx
cmp ebx, dword [eax + 0x2c]
jge 0x4372a1
lea esi, [ebx + ebx*2]
shl esi, 5
mov dword [esp + 0x50], esi
mov ecx, dword [0x4ac9b0]
mov eax, dword [ecx + 0x30]
test dword [eax + esi + 0x2c], 0x20000
je 0x437287
mov edx, dword [eax + esi + 0x38]
mov eax, dword [eax + esi + 0x3c]
mov ecx, dword [ecx + 0x50]
mov dword [esp + 0x44], edx
lea eax, [eax + eax*8]
test edx, edx
jle 0x437287
lea ebx, [ecx + 0x14]
lea ebx, [ebx + eax*4]
mov esi, ebx
mov edi, 4
mov eax, dword [esi]
test eax, eax
je 0x437270
push eax
push dword [0x4ac984]
call dword [0x4ab564]
mov dword [esi], 0
add esi, 4
dec edi
jne 0x437257
add ebx, 0x24
dec dword [esp + 0x44]
jne 0x437250
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x50]
mov eax, dword [0x4ac9b0]
inc ebx
add esi, 0x60
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], esi
cmp ebx, dword [eax + 0x2c]
jl 0x437221
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
test bl, 4
je 0x4372e7
mov esi, dword [0x4ab574]
test bl, bl
jns 0x4372c0
push 1
push 0
push dword [0x4ac984]
call esi
mov ecx, dword [0x4ac9b0]
mov edx, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x1c]
call fcn.0042bb00
push 1
push 0
push dword [0x4ac984]
or ebx, 0x200
mov dword [esp + 0x28], ebx
call esi
test edi, edi
jne 0x437382
mov eax, dword [0x4ac9b0]
mov eax, dword [eax + 0xc]
test al, 2
je 0x43730b
test bl, 8
je 0x437382
call fcn.004415b0
jmp 0x437382
cmp dword [esp + 0x6c], 0
jne 0x437382
test al, 4
jne 0x437382
mov ecx, dword [0x4ac9b0]
mov eax, dword [ecx + 0x30]
mov ebx, dword [eax + 0x2c]
test bl, 0x20
jne 0x437337
mov edx, dword [ecx + 0x1c]
mov eax, dword [esp + 0x7c]
add eax, edx
js 0x43737e
cmp edx, dword [ecx + 0x3c]
jge 0x43737e
test bl, 0x40
jne 0x437355
mov ecx, dword [0x4ac9b0]
mov eax, dword [esp + 0x80]
mov edx, dword [ecx + 0x20]
add eax, edx
js 0x43737e
cmp edx, dword [ecx + 0x40]
jge 0x43737e
mov eax, dword [0x4ac9b0]
mov eax, dword [eax + 8]
or eax, 0x2000000
push eax
push dword [esp + 0x88]
push dword [esp + 0x7c]
push 0
push 0
push dword [0x4ac984]
call dword [0x4ab544]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
test edx, edx
je 0x4373e3
test edi, edi
jne 0x4373e3
cmp dword [esp + 0x64], edi
je 0x4373a2
push edi
push edi
push dword [0x4ac984]
call dword [0x4ab8a0]
push 0
test bl, 0x20
jne 0x4373b7
push dword [0x4ac984]
call dword [0x4ab8a4]
jmp 0x4373d7
push 0x7fff
push 0x7fff
push 0xffff8001
push 0xffff8001
push dword [0x4ac984]
call dword [0x4ab640]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], 1
mov ecx, dword [0x4ac9b0]
test edi, edi
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov edi, 0
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x4c], edi
cmp edi, dword [ecx + 0x2c]
jge 0x4377b0
mov eax, dword [0x4ac9b0]
lea ecx, [edi + edi*2]
mov ebx, dword [eax + 0x30]
shl ecx, 5
add ebx, ecx
mov dword [esp + 0x80], ecx
mov eax, dword [ebx + 0xc]
add dword [ebx + 4], eax
mov eax, dword [ebx + 0x10]
add dword [ebx + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x9c], ebx
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
test eax, 0x40000
je 0x43745a
or eax, 0x10
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x2c]
test al, 0x10
jne 0x437479
test edi, edi
jne 0x437799
test edx, edx
je 0x437799
mov dword [esp + 0x70], 1
test byte [esp + 0x1c], 0x80
je 0x43748b
test eax, 0x10000
je 0x437799
and eax, 0xfffeffff
mov ecx, eax
shr ecx, 6
and ecx, 1
mov edx, eax
shr edx, 5
and edx, 1
mov dword [esp + 0x8c], ecx
or ecx, edx
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x90], ecx
mov ecx, dword [0x4ac9b0]
mov dword [esp + 0x94], edx
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x20]
test al, 3
je 0x4374f2
test al, 1
je 0x4374de
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebx + 0x30]
cvttss2si edx, xmm0
test al, 2
je 0x4374f2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebx + 0x34]
cvttss2si ecx, xmm0
add edx, dword [ebx + 4]
add ecx, dword [ebx + 8]
cmp dword [esp + 0x94], 0
mov dword [esp + 0x60], edx
mov dword [esp + 0x38], ecx
je 0x437515
mov eax, edx
cdq
idiv dword [esp + 0x58]
mov dword [esp + 0x60], edx
cmp dword [esp + 0x8c], 0
je 0x437528
mov eax, ecx
cdq
idiv esi
mov dword [esp + 0x38], edx
test edi, edi
js 0x437561
mov ecx, dword [0x4ac9b0]
cmp edi, dword [ecx + 0x2c]
jge 0x437561
mov esi, dword [ecx + 0x30]
add esi, dword [esp + 0x80]
push dword [esi + 0x24]
call fcn.0046c837
add esp, 4
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x38]
lea ecx, [eax + eax*8]
mov eax, dword [0x4ac9b0]
mov dword [esp + 0x7c], esi
mov eax, dword [eax + 0x50]
lea edx, [eax + ecx*4]
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov dword [esp + 0x10], edx
and ecx, 0x20000
je 0x4375a0
mov esi, dword [esp + 0x70]
test edi, edi
cmove esi, dword [esp + 0xa0]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7c]
test ecx, ecx
je 0x4375ac
test edi, edi
jne 0x43775e
mov ecx, eax
shr ecx, 2
not ecx
and ecx, 1
mov dword [esp + 0x98], ecx
test eax, 0x40000
je 0x4375cc
and eax, 0xfffbffff
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
test esi, esi
jle 0x43775e
jmp 0x4375f0
movzx ecx, word [edx + 0x12]
mov dword [esp + 0x44], eax
add eax, 5
mov dword [esp + 0x54], ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x40], eax
cmp ecx, 2
jge 0x437629
mov edi, dword [edx + 4]
sub edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xa4], edi
mov esi, dword [edx + 8]
sub esi, dword [esp + 0x38]
jmp 0x4378f1
movzx ecx, word [edx + 2]
mov eax, dword [0x4ac9ac]
cmp ecx, dword [eax + 0x194]
jl 0x43764d
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x4376e3
mov edx, dword [0x4ac9ac]
mov eax, dword [edx + 0x198]
movzx ecx, word [eax + ecx*2]
mov eax, dword [edx + 0x19c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4384c2
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4384c2
test byte [eax + 0x10], 2
mov dword [esp + 0x30], eax
je 0x4376d1
mov eax, dword [0x4ac9b4]
xor edx, edx
mov esi, dword [eax + 0x3c]
mov ecx, dword [eax + 0x1278]
test esi, esi
jle 0x4376c9
mov edi, dword [esp + 0x10]
movzx edi, word [edi]
cmp dword [ecx], 0
jne 0x4376af
add ecx, 8
cmp dword [ecx], 0
je 0x4376a7
mov ebx, dword [ecx]
mov dword [esp + 0x3c], ebx
movsx eax, word [ebx + 0x10]
cmp edi, eax
je 0x4378ca
inc edx
add ecx, 8
cmp edx, esi
jl 0x4376a2
mov dword [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
cmp word [edx + 0x10], 0
ja 0x4376f1
cmp dword [esp + 0x6c], 0
je 0x43772a
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx]
test eax, eax
je 0x43772a
push eax
push dword [0x4ac984]
call dword [0x4ab564]
test dword [esp + 0x1c], 0x200
je 0x437720
push dword [ebx]
push dword [0x4ac984]
call dword [0x4ab568]
mov dword [ebx], 0
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x48]
je 0x437739
dec ebx
sub edx, 0x24
mov eax, dword [esp + 0x20]
inc ebx
add edx, 0x24
mov dword [esp + 0x48], ebx
mov dword [esp + 0x10], edx
cmp ebx, dword [esp + 0x7c]
jl 0x4375f0
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0x4c]
cmp dword [ebx + 0x18], 0
je 0x437783
push dword [esp + 0x5c]
mov edx, edi
push dword [esp + 0x88]
mov ecx, ebx
push dword [esp + 0x7c]
push dword [esp + 0x28]
call fcn.004368f0
add esp, 0x10
mov eax, dword [ebx + 0x2c]
mov esi, dword [esp + 0x2c]
test eax, 0x20000
je 0x437799
and eax, 0xfffdffef
mov dword [ebx + 0x2c], eax
mov eax, dword [0x4ac9b0]
mov edx, dword [esp + 0x78]
inc edi
mov dword [esp + 0x4c], edi
cmp edi, dword [eax + 0x2c]
jl 0x437412
cmp dword [esp + 0x64], 0
je 0x43780d
mov ecx, dword [0x4ac9b0]
mov edx, dword [ecx + 0x30]
mov esi, dword [ecx + 0x1c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ecx + 0x20]
test al, 3
je 0x4377f5
test al, 1
je 0x4377e1
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [edx + 0x30]
cvttss2si esi, xmm0
test al, 2
je 0x4377f5
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [edx + 0x34]
cvttss2si ecx, xmm0
mov eax, dword [edx + 8]
add eax, ecx
push eax
mov eax, dword [edx + 4]
add eax, esi
push eax
push dword [0x4ac984]
call dword [0x4ab8a0]
mov ebx, dword [esp + 0x1c]
test ebx, 0x108
je 0x43781e
call fcn.00429470
test bl, 2
mov ebx, dword [0x4ab704]
jne 0x437831
push dword [0x4ac984]
call ebx
test byte [esp + 0x1c], 4
je 0x4378b5
mov eax, dword [0x4ac9b4]
mov edi, dword [eax + 0x4e4]
mov dword [eax + 0x4e4], 0
mov eax, dword [0x4ac9b4]
mov dword [eax + 0x4e8], 0
test edi, edi
je 0x43787e
mov eax, dword [edi + 4]
push edi
call eax
mov esi, dword [edi]
add esp, 4
push edi
call fcn.0046c837
add esp, 4
mov edi, esi
test esi, esi
jne 0x437864
mov eax, dword [0x4ac9b4]
push dword [eax]
call dword [0x4ab738]
call fcn.004011c0
mov eax, dword [0x4ac9b4]
push dword [eax]
call dword [0x4ab73c]
call fcn.00401210
call fcn.00429470
mov eax, dword [0x4ac9b4]
push dword [eax]
call ebx
call fcn.0042c1a0
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046c796
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x4c]
sub edi, dword [ebx + 0x58]
mov ecx, dword [0x4ac9b0]
mov edx, dword [esp + 0x10]
sub edi, dword [ecx + 0x1c]
mov dword [esp + 0xa4], edi
mov esi, dword [ebx + 0x54]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ecx + 0x20]
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x64], 0
mov dword [esp + 0xa8], esi
jne 0x437937
cmp dword [esp + 0x90], 0
jne 0x437937
mov eax, dword [esp + 0x74]
add eax, 0x60
cmp edi, eax
jge 0x437922
mov eax, dword [esp + 0x84]
add eax, 0x10
cmp esi, eax
jl 0x437937
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
jmp 0x4376e3
cmp ecx, 2
jge 0x4379d1
movzx ecx, word [edx + 2]
mov eax, dword [0x4ac9ac]
cmp ecx, dword [eax + 0x194]
jl 0x437964
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x4376e3
mov edx, dword [0x4ac9ac]
mov eax, dword [edx + 0x198]
movzx ecx, word [eax + ecx*2]
mov eax, dword [edx + 0x19c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4379b8
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4379b8
mov ecx, eax
mov dword [esp + 0x30], ecx
mov edx, dword [ecx + 8]
add edx, edi
mov dword [esp + 0xac], edx
mov ebx, dword [ecx + 0xc]
add ebx, esi
mov dword [esp + 0xb0], ebx
movzx eax, word [ecx + 4]
mov dword [esp + 0x34], eax
movzx eax, word [ecx + 6]
jmp 0x437a03
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
jmp 0x4376e3
mov edx, dword [ebx + 0x60]
mov eax, dword [esp + 0x30]
add edx, edi
mov dword [esp + 0xac], edx
mov ebx, dword [ebx + 0x64]
add ebx, esi
mov dword [esp + 0xb0], ebx
movzx eax, word [eax + 0x2a]
mov ecx, eax
shr ecx, 4
and ecx, 3
shr eax, 2
mov dword [esp + 0x34], ecx
and eax, 1
cmp dword [esp + 0x90], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], edx
je case.default.0x437a26
mov ecx, dword [esp + 0x20]
cmp ecx, 3
ja case.default.0x437a26
jmp dword [ecx*4 + 0x4384dc]
cmp dword [esp + 0x94], 0
je 0x437a7f
test edi, edi
js 0x437a41
cmp edx, dword [esp + 0x58]
jle 0x437a7f
cmp dword [esp + 0x8c], 0
je 0x437a6a
test esi, esi
js 0x437a55
cmp ebx, dword [esp + 0x2c]
jle 0x437a6a
mov ecx, dword [esp + 0x14]
or ecx, 7
mov dword [esp + 0x20], 3
mov dword [esp + 0x14], ecx
jmp 0x437aac
mov ecx, dword [esp + 0x14]
or ecx, 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], ecx
jmp 0x437aac
cmp dword [esp + 0x8c], 0
je 0x437aa8
test esi, esi
js 0x437a93
cmp ebx, dword [esp + 0x2c]
jle 0x437aa8
mov ecx, dword [esp + 0x14]
or ecx, 2
mov dword [esp + 0x20], 2
mov dword [esp + 0x14], ecx
jmp 0x437aac
mov ecx, dword [esp + 0x14]
test cl, 1
mov ecx, dword [esp + 0x10]
jne 0x437b11
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x437b11
push eax
push dword [0x4ac984]
call dword [0x4ab564]
test dword [esp + 0x1c], 0x200
je 0x437ae6
mov edi, dword [esp + 0x10]
push dword [edi + 0x18]
push dword [0x4ac984]
call dword [0x4ab568]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x18], 0
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
test al, 2
jne 0x437b79
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x437b75
push eax
push dword [0x4ac984]
call dword [0x4ab564]
test dword [esp + 0x1c], 0x200
je 0x437b4a
mov edi, dword [esp + 0x10]
push dword [edi + 0x1c]
push dword [0x4ac984]
call dword [0x4ab568]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
test al, 4
jne case.default.0x437a26
mov eax, dword [ecx + 0x20]
test eax, eax
je case.default.0x437a26
push eax
push dword [0x4ac984]
call dword [0x4ab564]
test dword [esp + 0x1c], 0x200
mov edi, dword [esp + 0x10]
je 0x437bb6
push dword [edi + 0x20]
push dword [0x4ac984]
call dword [0x4ab568]
mov dword [edi + 0x20], 0
mov edx, dword [esp + 0xac]
mov ebx, dword [esp + 0xb0]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x18], edx
jmp case.default.0x437a26
test edi, edi
jns 0x437bf0
add edi, dword [esp + 0x58]
add edx, dword [esp + 0x58]
jmp 0x437bfc
mov eax, dword [esp + 0x58]
cmp edx, eax
jle 0x437c0e
sub edi, eax
sub edx, eax
mov dword [esp + 0xac], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0xa4], edi
mov ecx, dword [esp + 0x14]
and ecx, 0xfffffffe
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
test cl, 2
je case.default.0x437a26
jmp 0x437cce
test esi, esi
jns 0x437c3b
add esi, dword [esp + 0x2c]
add ebx, dword [esp + 0x2c]
jmp 0x437c47
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jle 0x437c55
sub esi, eax
sub ebx, eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xa8], esi
mov ecx, dword [esp + 0x14]
and ecx, 0xfffffffd
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
test cl, 1
je case.default.0x437a26
mov dword [esp + 0x20], 1
jmp case.default.0x437a26
test edi, edi
jns 0x437c83
add edi, dword [esp + 0x58]
add edx, dword [esp + 0x58]
jmp 0x437c8f
mov eax, dword [esp + 0x58]
cmp edx, eax
jle 0x437ca1
sub edi, eax
sub edx, eax
mov dword [esp + 0xac], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0xa4], edi
test esi, esi
jns 0x437caf
add esi, dword [esp + 0x2c]
add ebx, dword [esp + 0x2c]
jmp 0x437cbb
mov ecx, dword [esp + 0x2c]
cmp ebx, ecx
jle 0x437cc9
sub esi, ecx
sub ebx, ecx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xa8], esi
and dword [esp + 0x14], 0xfffffffb
mov dword [esp + 0x20], 2
mov eax, dword [esp + 0x34]
cmp eax, 3
jne 0x437da5
cmp dword [esp + 0x4c], 0
jl 0x437d9a
mov ecx, dword [0x4ac9b0]
mov eax, dword [esp + 0x4c]
cmp eax, dword [ecx + 0x2c]
mov eax, dword [esp + 0x34]
jge 0x437d9a
mov ecx, dword [ecx + 0x30]
add ecx, dword [esp + 0x80]
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + 0x1c]
cmp dword [ecx + 0x20], eax
jl 0x437d3c
add eax, 0x10
shl eax, 4
push eax
push dword [ecx + 0x24]
call fcn.0046d3f6
add esp, 8
test eax, eax
je 0x437d76
mov ecx, dword [esp + 0x28]
add dword [ecx + 0x1c], 0x10
mov dword [ecx + 0x24], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, eax
inc eax
mov dword [edx + 0x20], eax
shl ecx, 4
add ecx, dword [edx + 0x24]
mov edx, dword [esp + 0x18]
cmp edi, edx
mov eax, edx
cmovl eax, edi
cmp esi, ebx
mov dword [ecx], eax
mov eax, ebx
cmovl eax, esi
cmp edi, edx
cmovg edx, edi
cmp esi, ebx
cmovg ebx, esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], ebx
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x18], edx
mov ecx, 1
mov dword [esp + 0x68], ecx
jmp 0x437da9
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x4c], 0
jne 0x4380ee
cmp dword [esp + 0x78], 0
je 0x4380ee
cmp eax, 4
je 0x4380ee
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x437de2
cmp edx, 0xffffffa0
jl 0x4380ee
cmp ebx, 0xfffffff0
jl 0x4380ee
mov dword [esp + 0x28], 0
test eax, eax
je 0x437e1e
add edx, dword [esp + 0x60]
add edi, dword [esp + 0x60]
add esi, dword [esp + 0x38]
add ebx, dword [esp + 0x38]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ebx
xor eax, eax
cmp dword [esp + 0x34], 1
mov dword [esp + 0x50], eax
jne 0x437e3e
mov eax, 3
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], 0
jmp 0x437e48
cmp dword [esp + 0x5c], eax
jne 0x437f75
test ecx, ecx
je 0x437e84
push eax
lea eax, [ebx - 1]
push eax
lea eax, [edx - 1]
push eax
push esi
push edi
push dword [0x4ac984]
call dword [0x4ab640]
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
jmp 0x437f79
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x1c], 2
jne 0x437ec3
mov eax, dword [0x4ac9b0]
test dword [eax + 0xc], 0x400
jne 0x437ea2
test byte [ecx + 4], 1
je 0x437ec3
call fcn.00434b00
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x54]
cmp ecx, 2
jge 0x437ee5
mov eax, dword [esp + 0x30]
push 0
movzx eax, word [eax + 0x10]
push eax
push dword [0x4ac97c]
call dword [0x4ab8a8]
jmp 0x437f09
mov eax, dword [0x4ac9b4]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x11e0]
test eax, eax
je 0x437f2d
push 0
push dword [esp + 0x40]
call eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x437f36
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
push dword [esp + 0x50]
jmp 0x437e4d
push dword [esp + 0x50]
push 3
push dword [esp + 0xb0]
push dword [esp + 0xb0]
push eax
push dword [0x4ac984]
call dword [0x4ab8ac]
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
jmp 0x437f79
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x34], 2
jne 0x4380b9
mov eax, dword [esp + 0x68]
mov dword [esp + 0x5c], 0
test eax, eax
je 0x437fb9
lea eax, [esi + 6]
cmp eax, ebx
cmovl ebx, eax
push 2
lea eax, [ebx - 1]
push eax
lea eax, [edx - 1]
push eax
push esi
push edi
push dword [0x4ac984]
call dword [0x4ab640]
jmp 0x43809d
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x1c], 2
jne 0x437ff8
mov eax, dword [0x4ac9b0]
test dword [eax + 0xc], 0x400
jne 0x437fd7
test byte [ecx + 4], 1
je 0x437ff8
call fcn.00434b00
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x43808e
mov eax, dword [esp + 0x54]
cmp eax, 2
jge 0x438026
mov eax, dword [esp + 0x30]
push 0
movzx eax, word [eax + 0x10]
push eax
push dword [0x4ac97c]
call dword [0x4ab8a8]
jmp 0x43804c
mov ecx, eax
mov eax, dword [0x4ac9b4]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x11e0]
test eax, eax
je 0x43806c
push 0
push dword [esp + 0x40]
call eax
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
test eax, eax
jne 0x43808e
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
lea eax, [esi + 6]
cmp eax, ebx
cmovl ebx, eax
push 2
lea eax, [ebx - 1]
push eax
lea eax, [edx - 1]
push eax
push esi
push edi
push dword [0x4ac984]
call dword [0x4ab640]
jmp 0x43809d
push esi
push edi
push eax
push dword [0x4ac984]
call dword [0x4ab8b0]
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
cmp dword [esp + 0x64], 0
je 0x4380f2
sub edi, dword [esp + 0x60]
sub esi, dword [esp + 0x38]
sub edx, dword [esp + 0x60]
sub ebx, dword [esp + 0x38]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ebx
jmp 0x4380f2
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x74]
jg 0x4376df
cmp esi, dword [esp + 0x84]
jg 0x4376df
test edx, edx
js 0x4376df
test ebx, ebx
js 0x4376df
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x1c], 2
jne 0x438158
mov eax, dword [0x4ac9b0]
test dword [eax + 0xc], 0x400
jne 0x438137
test byte [ecx + 4], 1
je 0x438158
call fcn.00434b00
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
cmp dword [esp + 0x4c], 0
jg 0x438171
cmp dword [esp + 0x6c], 0
je 0x4381a2
cmp dword [esp + 0x70], 0
jne 0x437726
cmp dword [esp + 0x98], 0
mov ecx, 0x480208
mov eax, 0x480008
cmove eax, ecx
mov ecx, dword [esp + 0x34]
dec ecx
je 0x4382ff
dec ecx
jne 0x438304
or eax, 0x20001
jmp 0x438304
cmp dword [esp + 0x70], 0
jne 0x437726
mov eax, dword [esp + 0x54]
sub eax, 0
je 0x438278
dec eax
je 0x43821e
mov edx, dword [esp + 0x3c]
movsx ecx, word [edx + 0x18]
cmp ecx, 0x20
jge 0x4381e1
mov eax, dword [ecx*4 + 0x4a9b5c]
test eax, eax
je 0x437726
push edx
call eax
jmp 0x437726
mov eax, dword [0x4ac9b4]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
cmp dword [ecx + eax - 0x1230], 0
je 0x438207
push edx
call fcn.004564a0
jmp 0x437726
mov eax, dword [ecx + eax - 0x1234]
test eax, eax
je 0x437726
push edx
call eax
jmp 0x437726
mov ebx, dword [esp + 0x24]
cmp word [ebx + 8], 0xd
mov edx, dword [ebx + 0xc]
jne 0x438256
cmp dword [ebx + 0x28], 0
jne 0x438253
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x438240
call fcn.00434330
jmp 0x438242
xor eax, eax
mov dword [ebx + 0x28], eax
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x30]
push edx
push dword [ebx + 8]
movzx eax, word [eax + 0x10]
push 0
push esi
push edi
push eax
push dword [0x4ac984]
call dword [0x4ab5f8]
jmp 0x437726
mov ebx, dword [esp + 0x24]
cmp word [ebx + 8], 0xd
mov edx, dword [ebx + 0xc]
jne 0x4382b0
cmp dword [ebx + 0x28], 0
jne 0x4382ad
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x43829a
call fcn.00434330
jmp 0x43829c
xor eax, eax
mov dword [ebx + 0x28], eax
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa4]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 8]
mov eax, ecx
shr eax, 0x1d
and eax, 1
push eax
push edx
movzx eax, cx
push eax
mov eax, dword [esp + 0x3c]
shr ecx, 0x1c
and ecx, 1
push ecx
push dword [eax + 0xc]
mov ecx, dword [esp + 0x9c]
push dword [eax + 8]
lea edx, [eax + 0x10]
push esi
push edi
call fcn.004358a0
add esp, 0x20
lea eax, [esp + 0xa4]
push eax
push dword [0x4ac984]
call dword [0x4ab5fc]
jmp 0x437726
or eax, 0x10001
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x438404
mov ecx, dword [esp + 0x54]
sub ecx, 0
je 0x4383fa
dec ecx
je 0x43836f
cmp dword [esp + 0x3c], 0
je 0x437726
push 0x436840
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x50]
or eax, 0x100
push eax
mov eax, dword [esp + 0x50]
push 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, word [ecx + 0x10]
push eax
push ebx
push edx
push esi
push edi
push dword [0x4ac984]
call dword [0x4ab55c]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
jmp 0x437726
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
neg ecx
push edx
sbb ecx, ecx
and ecx, 0x100
or ecx, eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push 0
lea eax, [eax + ecx*4]
push eax
movzx eax, word [edx + 0x10]
push eax
mov eax, dword [esp + 0x44]
movzx eax, word [eax + 0x10]
push eax
push esi
push edi
push dword [0x4ac984]
call dword [0x4ab550]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x24]
mov dword [ecx], eax
cmp word [ebx + 8], 0xd
mov edx, dword [ebx + 0xc]
jne 0x4383e3
cmp dword [ebx + 0x28], 0
jne 0x4383e0
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x4383d7
call fcn.00434330
jmp 0x4383d9
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x28], eax
mov edx, dword [ebx + 0x28]
push edx
push dword [ebx + 8]
push dword [ecx]
push dword [0x4ac984]
call dword [0x4ab554]
jmp 0x437726
push 0x436580
jmp 0x438332
mov eax, dword [esp + 0x54]
sub eax, 0
je 0x43844e
dec eax
je 0x438431
cmp dword [esp + 0x3c], 0
je 0x437726
push ebx
push edx
push esi
push edi
push ecx
push dword [0x4ac984]
call dword [0x4ab570]
jmp 0x437726
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x10]
push eax
push esi
push edi
push ecx
push dword [0x4ac984]
call dword [0x4ab89c]
jmp 0x437726
lea eax, [esp + 0xb4]
push eax
push ecx
push dword [0x4ac984]
call dword [0x4ab560]
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
cmp esi, dword [esp + 0xb4]
jne 0x4384a7
cmp edx, dword [esp + 0xb8]
jne 0x4384a7
cmp ecx, dword [esp + 0xbc]
jne 0x4384a7
cmp eax, dword [esp + 0xc0]
je 0x437726
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push esi
push dword [eax]
push dword [0x4ac984]
call dword [0x4ab570]
jmp 0x437726
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
jmp 0x4376e3