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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 2]
cmp cx, word [0x7b4988]
push ebx
push esi
push edi
mov dword [esp + 0x3c], ecx
jne 0x4af92a
mov edx, dword [eax + 0x34]
cmp edx, 0xffffffff
je 0x4af92a
mov esi, dword [0x851c30]
mov esi, dword [esi + 0x34]
mov eax, edx
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 8]
mov esi, dword [0x86cff4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
and eax, 0xffff
shl eax, 5
cmp cx, 0xffff
mov ebx, dword [eax + esi + 0x14]
jne 0x4ae824
mov dword [esp + 0x60], 0xffffffff
jmp 0x4ae835
mov esi, dword [0x86b838]
movsx eax, cx
mov eax, dword [esi + eax*4 + 4]
mov dword [esp + 0x60], eax
mov eax, dword [0x70b26c]
movsx esi, cx
imul esi, esi, 0x58
add esi, eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1ec]
mov dword [esp + 0x1e8], edx
rep stosd dword es:[edi], eax
mov eax, dword [0x86b838]
xor ecx, ecx
cmp word [eax + 0xc], 1
mov eax, dword [ebx + 0x2a8]
setg cl
dec eax
mov dword [esp + 0x20], esi
movsx ecx, cx
cmp ecx, eax
jg 0x4ae87c
mov eax, ecx
test ax, ax
jge 0x4ae886
or eax, 0xffffffff
jmp 0x4ae899
movsx eax, ax
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x2ac]
shl ecx, 4
mov eax, dword [ecx + eax + 0xc]
mov dword [esp + 0x1a0], eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1a4]
push edx
rep stosd dword es:[edi], eax
mov ebx, 1
call fcn.00466800
mov byte [esp + 0x2f], al
mov eax, dword [esi + 0x1c]
add esp, 4
cmp eax, 0xffffffff
mov edx, 0xbf800000
jne 0x4ae8fb
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + 2]
mov ecx, dword [0x70b26c]
imul eax, eax, 0x58
add eax, ecx
or ecx, 0xffffffff
mov word [eax + 0x22], cx
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], edx
mov dword [eax + 0x1c], ecx
jmp 0x4ae8fe
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0x11c]
cmp eax, ecx
mov dword [esp + 0x34], eax
je 0x4aea31
mov eax, edx
cmp word [eax + 0x2f0], 0xffff
je 0x4aea31
mov eax, dword [esp + 0x34]
mov ecx, dword [0x851c30]
mov ecx, dword [ecx + 0x34]
and eax, 0xffff
lea edx, [eax + eax*2]
mov esi, dword [ecx + edx*4 + 8]
mov eax, dword [esi]
mov edx, dword [0x86b838]
and eax, 0xffff
shl eax, 5
cmp word [edx + 0xc], 1
mov dword [esp + 0x58], ecx
mov ecx, dword [0x86cff4]
mov edi, dword [eax + ecx + 0x14]
setg al
mov edx, edi
mov byte [esp + 0x54], al
call fcn.0055c630
mov ecx, dword [esp + 0x1c]
movsx edx, word [ecx + 0x2f0]
mov ecx, dword [edi + 0x2e8]
imul edx, edx, 0x11c
test byte [edx + ecx], 4
je 0x4aea31
cmp eax, 0xffffffff
je 0x4ae9b4
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1ec], edx
mov dword [esp + 0x1a4], eax
mov ebx, 2
mov esi, dword [esi + 0x118]
cmp esi, 0xffffffff
je 0x4aea31
nop
cmp ebx, 0x12
jae 0x4aea31
mov ecx, dword [esp + 0x58]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 8]
push 3
mov ecx, esi
mov dword [esp + 0x54], edx
call fcn.004f2aa0
add esp, 4
test eax, eax
je 0x4aea22
mov ecx, dword [esp + 0x34]
cmp dword [eax + 0x11c], ecx
jne 0x4aea22
movsx eax, word [eax + 0x2f0]
cmp ax, 0xffff
je 0x4aea22
mov edx, dword [esp + 0x54]
push edx
mov ecx, edi
mov dword [esp + ebx*4 + 0x1ec], esi
call fcn.0055c670
add esp, 4
mov dword [esp + ebx*4 + 0x1a0], eax
inc ebx
mov eax, dword [esp + 0x50]
mov esi, dword [eax + 0x114]
cmp esi, 0xffffffff
jne 0x4ae9c0
mov al, byte [esp + 0x2b]
test al, al
mov ecx, dword [esp + 0x1c]
je 0x4aea51
cmp dword [ecx + 0x340], 0x3f800000
mov dword [esp + 0x34], 1
je 0x4aea59
mov dword [esp + 0x34], 0
test dword [ecx + 0x204], 0x80000
jne 0x4aea89
fld dword [ecx + 0x344]
fcomp dword [0x66c404]
fnstsw ax
test ah, 5
jp 0x4aea89
test byte [ecx + 0x208], 0x10
mov dword [esp + 0x50], 1
jne 0x4aea91
mov dword [esp + 0x50], 0
test ebx, ebx
mov ecx, dword [ecx + 0x344]
mov dword [esp + 0x38], ecx
je 0x4af92a
jmp 0x4aeab0
mov ebx, dword [esp + 0x1c]
lea esp, [esp]
mov ecx, dword [esp + ebx*4 + 0x1e4]
dec ebx
push 3
mov dword [esp + 0x20], ebx
call fcn.004f2aa0
add esp, 4
test eax, eax
mov dword [esp + 0x30], eax
je 0x4af91e
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x1a0]
cmp eax, 0xffffffff
je 0x4af91e
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov ecx, dword [eax + ecx + 0x14]
mov eax, dword [ecx + 0x54]
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 0x18], ecx
je 0x4aeb3d
mov edx, dword [esp + 0x30]
movzx eax, byte [edx + 0x106]
mov edx, dword [0x86b838]
shr eax, 1
and eax, 2
cmp word [edx + 0xc], 1
jle 0x4aeb26
or eax, 4
jmp 0x4aeb29
and eax, 0xfffffffb
push esi
push eax
lea eax, [ecx + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004aabc0
add esp, 0x14
mov eax, dword [0x6eb3c0]
test eax, eax
je 0x4aeb64
cmp dword [esp + 0x60], esi
je 0x4aeb64
mov edx, dword [0x6eb360]
shr edx, 3
not dl
and dl, 1
mov byte [esp + 0x2b], dl
je 0x4aeeee
mov eax, dword [0x70b26c]
mov ecx, dword [eax + 0x58]
test cl, 4
jne 0x4aeeee
mov edx, dword [esp + 0x30]
fld dword [edx + 0xe4]
fcomp dword [0x66c4d4]
fnstsw ax
test ah, 5
jnp 0x4aeb95
test cl, 8
jne 0x4aeb95
xor ecx, ecx
jmp 0x4aeba1
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x10]
test byte [edx + 0x106], 4
je 0x4aebaf
or ecx, 2
jmp 0x4aebb2
and ecx, 0xfffffffd
mov edx, dword [0x86b838]
cmp word [edx + 0xc], 1
jle 0x4aebc4
or ecx, 4
jmp 0x4aebc7
and ecx, 0xfffffffb
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x10], ecx
jne 0x4aebf7
test cl, 1
mov eax, dword [esp + 0x20]
je 0x4aebf0
cmp dword [eax + 0x10], 0xffffffff
jne 0x4aebf7
mov edx, dword [0x6eb40c]
mov edx, dword [edx + 0xc]
mov dword [eax + 0x10], edx
jmp 0x4aebf7
mov dword [eax + 0x10], 0xffffffff
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x124], 0xffffffff
je 0x4aeec3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4aec1c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
jmp 0x4aec2a
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xe4]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ax, word [ecx + 0x13e]
test ax, ax
mov dword [esp + 0x24], eax
jne 0x4aec48
mov dword [esp + 0x24], 0xff
mov eax, dword [0x68ce9c]
lea esi, [ecx + 0xf4]
mov ecx, 0x1a
lea edi, [esp + 0x230]
mov dword [esp + 0xc], esi
rep movsd dword es:[edi], dword [esi]
xor edi, edi
test eax, eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0xff0000
mov dword [esp + 0xf8], 0xff00
mov dword [esp + 0xfc], 0xffff00
mov dword [esp + 0x100], 0x7f00ff
lea ebx, [esp + 0xf0]
mov dword [esp + 0x14], edi
jl 0x4aeebf
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
fld dword [ecx + 0xe4]
test edi, edi
sete dl
fsub st(1)
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4aecdf
fstp st(0)
mov dword [esp + 0x40], 0
jmp 0x4aecfc
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4aecf8
fstp st(0)
mov dword [esp + 0x40], 0x3f800000
jmp 0x4aecfc
fstp dword [esp + 0x40]
fsubr dword [esp + 0x64]
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4aed17
fstp st(0)
fld dword [0x66c40c]
jmp 0x4aed2c
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4aed2c
fstp st(0)
fld dword [0x66c410]
fcom dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x4aed3b
mov cl, 1
jmp 0x4aed43
fstp st(0)
xor cl, cl
fld dword [esp + 0x40]
fld dword [esp + 0x40]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jp 0x4aed65
fcom dword [0x66c40c]
fnstsw ax
test ah, 0x41
jnp 0x4aeebd
test cl, cl
mov eax, dword [ebx]
mov dword [esp + 0x264], eax
mov dword [esp + 0x268], eax
je 0x4aed86
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
jmp 0x4aed8e
mov dword [esp + 0x68], 0xbf800000
movsx eax, word [esp + 0x24]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fst dword [esp + 0x14]
fmulp st(1)
fst dword [esp + 0x5c]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fistp dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
test eax, eax
jge 0x4aedc3
xor ecx, ecx
jmp 0x4aee0c
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x9c], ecx
fld dword [esp + 0x9c]
fistp dword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov ecx, 0xff
cmp eax, ecx
jg 0x4aee0c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xb8], eax
fld dword [esp + 0xb8]
fistp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
fld dword [esp + 0x14]
fmul dword [esp + 0x40]
fst dword [esp + 0x14]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fistp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
test eax, eax
jge 0x4aee30
xor eax, eax
jmp 0x4aee79
mov eax, dword [esp + 0x14]
mov dword [esp + 0x8c], eax
fld dword [esp + 0x8c]
fistp dword [esp + 0xac]
mov esi, dword [esp + 0xac]
mov eax, 0xff
cmp esi, eax
jg 0x4aee79
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], eax
fld dword [esp + 0x94]
fistp dword [esp + 0xb4]
mov eax, dword [esp + 0xb4]
test dl, dl
mov esi, dword [esp + 0xc]
jne 0x4aee88
lea esi, [esp + 0x230]
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x18]
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.004aa090
mov eax, dword [0x68ce9c]
add esp, 0x18
add ebx, 4
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jle 0x4aecb1
jmp 0x4aeebf
fstp st(0)
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xbc], 0xffffffff
je 0x4aeeee
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [esp + 0x40]
push ecx
lea ecx, [eax + 0x8c]
push ecx
push eax
push edx
call fcn.004aabc0
add esp, 0x14
mov eax, dword [0x70b26c]
mov eax, dword [eax + 0x58]
test al, 1
jne 0x4af124
mov ecx, dword [esp + 0x30]
mov cx, word [ecx + 0x106]
test cl, 8
jne 0x4aef16
test al, 2
jne 0x4aef16
xor eax, eax
jmp 0x4aef22
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x24]
test cl, 4
je 0x4aef2c
or eax, 2
jmp 0x4aef2f
and eax, 0xfffffffd
mov edx, dword [0x86b838]
cmp word [edx + 0xc], 1
jle 0x4aef41
or eax, 4
jmp 0x4aef44
and eax, 0xfffffffb
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x24], eax
jne 0x4aef73
test al, 1
mov ecx, dword [esp + 0x20]
je 0x4aef6c
cmp dword [ecx + 0x14], 0xffffffff
jne 0x4aef73
mov edx, dword [0x6eb40c]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0x14], edx
jmp 0x4aef73
mov dword [ecx + 0x14], 0xffffffff
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 0x214], 0xffffffff
je 0x4af0ec
xor eax, eax
mov ax, word [ebx + 0x22e]
test ax, ax
mov edx, eax
jne 0x4aef99
mov edx, 8
lea esi, [ebx + 0x1e4]
mov ecx, 0x1a
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
fld dword [ecx + 0xe0]
fcomp dword [ebx + 0x250]
fnstsw ax
test ah, 1
jne 0x4aefcd
mov eax, dword [esp + 0x170]
jmp 0x4aeffd
fld dword [ecx + 0xe0]
fcomp dword [ebx + 0x254]
fnstsw ax
test ah, 0x41
jp 0x4aeff0
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x170], ecx
jmp 0x4af004
mov eax, dword [ebx + 0x24c]
mov dword [esp + 0x170], eax
mov dword [esp + 0x16c], eax
mov esi, dword [esp + 0x30]
movsx edx, dx
mov dword [esp + 0xc], edx
push ecx
fild dword [esp + 0x10]
fst dword [esp + 0x14]
fmul dword [esi + 0xe0]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
test eax, eax
jge 0x4af031
xor edi, edi
jmp 0x4af06d
fld dword [esp + 0x10]
push ecx
fmul dword [esi + 0xe0]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
cmp eax, 0xff
jle 0x4af055
mov edi, 0xff
jmp 0x4af06d
fld dword [esp + 0x10]
push ecx
fmul dword [esi + 0xe0]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
mov edi, eax
fld dword [esp + 0x10]
push ecx
fmul dword [esi + 0xe0]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
test eax, eax
jge 0x4af08b
xor eax, eax
jmp 0x4af0c5
fld dword [esp + 0x10]
push ecx
fmul dword [esi + 0xe0]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
cmp eax, 0xff
jle 0x4af0af
mov eax, 0xff
jmp 0x4af0c5
fld dword [esp + 0x10]
push ecx
fmul dword [esi + 0xe0]
fstp dword [esp]
call fcn.004a9a60
add esp, 4
mov ecx, dword [esi + 0xe0]
mov edx, dword [esp + 0x24]
push ecx
push 0xbf800000
push edx
push edi
push eax
push ebx
lea esi, [esp + 0x150]
call fcn.004aa090
mov eax, dword [esp + 0x3c]
add esp, 0x18
cmp dword [ebx + 0x1ac], 0xffffffff
je 0x4af113
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
mov ecx, dword [esp + 0x3c]
push edx
push eax
lea eax, [ebx + 0x17c]
push eax
push ebx
push ecx
call fcn.004aabc0
add esp, 0x14
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xe0]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4af24b
mov edx, dword [0x70b26c]
test byte [edx + 0x58], 0x10
jne 0x4af24b
call fcn.004634a0
test al, al
je 0x4af24b
mov eax, dword [0x86b838]
mov ecx, dword [0x70b26c]
xor ebx, ebx
cmp word [eax + 0xc], 1
mov al, byte [ecx + 0x58]
setle bl
mov word [esp + 0x104], 2
dec ebx
and ebx, 4
test al, 0x20
je 0x4af17c
or ebx, 1
jmp 0x4af17f
and ebx, 0xfffffffe
mov eax, dword [esp + 0x20]
or ecx, 0xffffffff
test bl, 1
je 0x4af19e
cmp dword [eax + 0x18], ecx
jne 0x4af1a1
mov edx, dword [0x6eb40c]
mov edx, dword [edx + 0xc]
mov dword [eax + 0x18], edx
jmp 0x4af1a1
mov dword [eax + 0x18], ecx
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x29c], ecx
mov esi, dword [esp + 0x3c]
je 0x4af1cf
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x26c]
push ecx
lea edx, [esp + 0x110]
push edx
push esi
call fcn.004aabc0
add esp, 0x14
or ecx, 0xffffffff
cmp dword [edi + 0x304], ecx
je 0x4af1f2
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x2d4]
push eax
lea ecx, [esp + 0x110]
push ecx
push esi
call fcn.004aabc0
add esp, 0x14
mov ebx, dword [0x86b838]
cmp word [ebx + 0xc], 1
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x108]
push 0
setg al
push ecx
lea edx, [edi + 0x35c]
xor ecx, ecx
call fcn.004a9b60
mov di, word [ebx + 0xc]
add esp, 0xc
cmp si, 0xffff
je 0x4af24b
push esi
call fcn.004b2280
cmp di, 1
setg dl
lea eax, [esp + 0xc0]
mov ecx, esi
push edx
call fcn.004b2590
add esp, 8
mov edi, dword [esp + 0x18]
mov ecx, dword [0x6eb3c0]
xor eax, eax
add edi, 0x380
cmp ecx, eax
je 0x4af272
mov cl, byte [0x6eb35c]
test cl, cl
je 0x4af272
mov ecx, 1
jmp 0x4af274
xor ecx, ecx
mov edx, dword [0x86b838]
xor ebx, ebx
cmp word [edx + 0xc], 1
mov edx, dword [edi + 0x24]
setle bl
mov dword [esp + 0x14], eax
dec ebx
and ebx, 4
cmp edx, eax
jle 0x4af305
movzx ecx, cx
mov dword [esp + 0xc], ecx
lea ebx, [ebx]
mov ecx, dword [edi + 0x28]
imul eax, eax, 0x84
add eax, ecx
mov esi, eax
mov cl, byte [esi + 0x68]
mov eax, dword [esp + 0xc]
mov edx, 1
shl edx, cl
test eax, edx
je 0x4af2f2
test byte [esi + 0x6a], 1
je 0x4af2e0
mov ecx, dword [esp + 0x30]
add ecx, 0x188
push ecx
call fcn.004a9aa0
add esp, 4
or eax, 0xff000000
mov dword [esi + 0x34], eax
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
push esi
push edi
push edx
call fcn.004aabc0
add esp, 0x14
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x24]
inc eax
mov dword [esp + 0x14], eax
movsx eax, ax
cmp eax, ecx
jl 0x4af2a0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3cc]
mov edi, dword [esp + 0x20]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x14], esi
jle 0x4af61c
jmp 0x4af330
mov ecx, dword [esp + 0x18]
imul esi, esi, 0x144
mov ebx, dword [ecx + 0x3d0]
movsx ecx, word [esi + ebx]
movzx edx, word [edi + 0x20]
add esi, ebx
mov eax, 1
shl eax, cl
test eax, edx
je 0x4af365
test dword [esp + 0x34], eax
jne 0x4af365
or edx, 0xffffffff
mov word [edi + ecx*2 + 0x22], dx
jmp 0x4af368
or edx, 0xffffffff
movsx ecx, word [esi]
mov ebx, dword [esp + 0x34]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x4af56a
mov eax, dword [esi + 0x44]
fld dword [esp + ecx*4 + 0x38]
mov edx, dword [esi + 0xac]
fcomp dword [esi + 0xe4]
mov dword [esp + 0x5c], edx
xor edx, edx
mov dword [esp + 0x44], eax
mov eax, dword [0x86b838]
cmp word [eax + 0xc], 1
fnstsw ax
setle dl
dec edx
and edx, 4
test ah, 0x41
jp 0x4af3b8
or edx, 1
jmp 0x4af3bb
and edx, 0xfffffffe
mov dword [esp + 0x24], edx
mov edx, dword [0x6eb40c]
mov ax, word [edx + 0x10]
add word [edi + ecx*2 + 0x22], ax
fld dword [esi + 0x50]
fmul dword [0x66c414]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0xc4]
movsx ecx, word [esi]
movsx eax, word [edi + ecx*2 + 0x22]
mov edx, dword [esp + 0xc4]
lea ecx, [edi + ecx*2 + 0x22]
lea ebx, [edx + edx]
cdq
idiv ebx
mov eax, dword [esp + 0x44]
or ebx, 0xffffffff
cmp eax, ebx
mov word [ecx], dx
je 0x4af43c
movsx eax, word [esi]
movsx ecx, word [edi + eax*2 + 0x22]
mov edx, dword [0x6eb40c]
mov eax, dword [edx + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esi + 0x14]
push edx
push eax
push ecx
call fcn.004aabc0
add esp, 0x14
cmp dword [esp + 0x5c], ebx
je 0x4af600
movsx edx, word [esi + 0xc6]
movsx eax, word [esi]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + eax*4 + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0xa8]
mov eax, dword [esp + 0xa8]
test eax, eax
jge 0x4af482
xor ecx, ecx
jmp 0x4af4cd
movsx ecx, word [esi]
fld dword [esp + 0x10]
fmul dword [esp + ecx*4 + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0xc8]
mov eax, dword [esp + 0xc8]
mov ecx, 0xff
cmp eax, ecx
jg 0x4af4cd
movsx edx, word [esi]
fld dword [esp + 0x10]
fmul dword [esp + edx*4 + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0xb0]
mov ecx, dword [esp + 0xb0]
movsx eax, word [esi]
fld dword [esp + 0x10]
fmul dword [esp + eax*4 + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0xc0]
mov eax, dword [esp + 0xc0]
test eax, eax
jge 0x4af4f6
xor eax, eax
jmp 0x4af541
movsx edx, word [esi]
fld dword [esp + 0x10]
fmul dword [esp + edx*4 + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
mov eax, 0xff
cmp edx, eax
jg 0x4af541
movsx eax, word [esi]
fld dword [esp + 0x10]
fmul dword [esp + eax*4 + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
movsx edx, word [esi]
mov edx, dword [esp + edx*4 + 0x38]
push edx
mov edx, dword [esp + 0x28]
push 0xbf800000
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
add esi, 0x7c
push eax
call fcn.004aa090
add esp, 0x18
jmp 0x4af600
test dword [esp + 0x50], eax
jne 0x4af5a7
cmp word [edi + ecx*2 + 0x22], dx
je 0x4af5a0
fld dword [esi + 0x50]
fmul dword [0x66c414]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fistp dword [esp + 0x88]
movsx ecx, word [esi]
movsx eax, word [edi + ecx*2 + 0x22]
cmp eax, dword [esp + 0x88]
jl 0x4af5a7
mov word [edi + ecx*2 + 0x22], dx
jmp 0x4af600
mov ebx, dword [0x86b838]
mov edx, dword [esi + 0x44]
xor eax, eax
cmp word [ebx + 0xc], 1
mov ebx, dword [0x6eb40c]
mov bx, word [ebx + 0x10]
setle al
add word [edi + ecx*2 + 0x22], bx
dec eax
and eax, 4
cmp edx, 0xffffffff
je 0x4af600
movsx ecx, word [esi]
movsx edx, word [edi + ecx*2 + 0x22]
mov ecx, dword [0x6eb40c]
mov ecx, dword [ecx + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x18]
push ecx
or eax, 1
push eax
mov eax, dword [esp + 0x44]
add esi, 0x14
push esi
push edx
push eax
call fcn.004aabc0
add esp, 0x14
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
movsx esi, ax
mov dword [esp + 0x14], eax
cmp esi, dword [ecx + 0x3cc]
jl 0x4af330
mov eax, dword [0x6eb3c0]
test eax, eax
mov dx, word [esp + 0x34]
mov word [edi + 0x20], dx
je 0x4af91e
mov al, byte [0x6eb35c]
test al, al
je 0x4af656
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x20]
neg ebx
sbb ebx, ebx
and ebx, 0xff0401e3
add ebx, 0xb0fe0000
jmp 0x4af6fa
mov eax, dword [esp + 0x60]
lea esi, [esp + 0x128]
call fcn.00463150
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov eax, dword [eax + 8]
lea ecx, [esp + 0xcc]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x90], 0x437f0000
mov edx, dword [esp + 0xc]
fld dword [edx]
fld dword [edx + 4]
fld dword [edx + 8]
fld dword [esp + 0x90]
fmul st(3), st(0)
fmul st(2), st(0)
fmulp st(1)
fistp dword [esp + 0x54]
and dword [esp + 0x54], 0xff
mov edx, dword [esp + 0x54]
fistp dword [esp + 0x54]
and dword [esp + 0x54], 0xff
shl dword [esp + 0x54], 8
or edx, dword [esp + 0x54]
fistp dword [esp + 0x54]
and dword [esp + 0x54], 0xff
shl dword [esp + 0x54], 0x10
or edx, dword [esp + 0x54]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x54]
or ebx, 0xff000000
mov eax, dword [0x6eb358]
dec eax
cmp eax, 4
ja case.default.0x4af709
jmp dword [eax*4 + 0x4af934]
push str.ui_shell_bitmaps_team_icon_ctf
mov edi, 0x6269746d
call fcn.00442550
mov word [esp + 0x30], 0x1c8
mov word [esp + 0x32], 6
mov dword [esp + 0x4c], 0x3f0ccccd
mov dword [esp + 0x50], 0x3f0ccccd
jmp 0x4af7f8
push str.ui_shell_bitmaps_team_icon_king
mov edi, 0x6269746d
call fcn.00442550
mov word [esp + 0x30], 0x1ca
mov dword [esp + 0x4c], 0x3f07ae14
mov dword [esp + 0x50], 0x3f07ae14
jmp 0x4af7f1
push str.ui_shell_bitmaps_team_icon_oddball
mov edi, 0x6269746d
call fcn.00442550
mov word [esp + 0x30], 0x1c8
mov word [esp + 0x32], 7
mov dword [esp + 0x4c], 0x3f0ccccd
mov dword [esp + 0x50], 0x3f0ccccd
jmp 0x4af7f8
push str.ui_shell_bitmaps_team_icon_race
mov edi, 0x6269746d
call fcn.00442550
mov word [esp + 0x30], 0x1c5
mov word [esp + 0x32], 6
mov dword [esp + 0x4c], 0x3f19999a
mov dword [esp + 0x50], 0x3f19999a
jmp 0x4af7f8
push str.ui_shell_bitmaps_team_icon_slayer
mov edi, 0x6269746d
call fcn.00442550
mov word [esp + 0x30], 0x1c9
mov dword [esp + 0x4c], 0x3f000000
mov dword [esp + 0x50], 0x3f000000
mov word [esp + 0x32], 8
add esp, 4
mov dword [0x68ce94], eax
mov eax, dword [0x68ce94]
push 0
xor edi, edi
call fcn.0043f2a0
mov esi, eax
push str.ui_shell_bitmaps_team_background
mov edi, 0x6269746d
mov dword [esp + 0x14], esi
call fcn.00442550
push 0
xor edi, edi
mov dword [0x68ce98], eax
call fcn.0043f2a0
add esp, 0xc
test esi, esi
je 0x4af91e
test eax, eax
je 0x4af91e
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0xec]
push ecx
push eax
push edi
lea esi, [esp + 0xf0]
lea eax, [esp + 0x70]
mov dword [esp + 0x100], edi
mov dword [esp + 0xf8], edi
mov dword [esp + 0x104], 0x3f800000
mov dword [esp + 0xfc], 0x3f800000
mov word [esp + 0x70], 0x1bd
mov word [esp + 0x72], 6
mov dword [esp + 0xf0], 0x3f19999a
mov dword [esp + 0xf4], 0x3f23d70a
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], 0x43000000
mov dword [esp + 0x90], 0x42800000
call fcn.004ab220
mov ecx, dword [esp + 0x24]
push ebx
push edi
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x104]
push eax
push ecx
push edi
lea esi, [esp + 0x78]
lea eax, [esp + 0x5c]
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], 0x42800000
mov dword [esp + 0xa8], 0x42800000
call fcn.004ab220
add esp, 0x30
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4aeaa5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret