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

Disassembly:
sub esp, 0x28
push edi
mov edi, dword [0x6815a8]
mov eax, dword [edi + 0x3ea4]
cmp eax, dword [edi + 0x3ea0]
je 0x4736a2
push ebx
push esi
push 2
push edi
call fcn.0046a0a0
mov ebx, dword [0x6815a8]
add esp, 8
cmp dword [ebx + 0x3ee0], 1
jle 0x47306c
call fcn.004729c0
cmp dword [ebx + 0x3ee0], 1
jg 0x473058
mov ebx, dword [0x6815a8]
push ebp
mov ebp, dword [edi + 0x8c]
test ebp, ebp
je 0x4730c2
lea ecx, [edi + 0x5320]
mov esi, 0xc
lea edx, [edi + 0x5330]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47309b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x473088
jmp 0x4730c2
push dword [edi + 0x5340]
call fcn.00474400
add esp, 4
test eax, eax
jne 0x4730b5
mov eax, dword [ebx + 0x40e4]
mov eax, dword [eax]
lea ecx, [edi + 0x5320]
push ecx
push eax
call ebp
add esp, 8
mov eax, dword [edi + 0x3f04]
mov byte [edi + 0x3eb1], 0
test eax, eax
je 0x4730e3
cmp byte [eax + 0xc5], 0
jne 0x4730e3
mov byte [eax + 0xc3], 0
call fcn.004729c0
mov ecx, dword [0x6815a8]
mov esi, ecx
cmp dword [esi + 0x4274], 0
je 0x473104
call fcn.0047afe0
mov ecx, dword [0x6815a8]
cmp dword [esi + 0x4124], 0
je 0x473141
cmp byte [ecx + 0x417d], 0
je 0x473141
cmp dword [ecx + 0x41c8], 0
jne 0x473141
cmp dword [ecx + 0x4220], 0
jne 0x473141
mov eax, dword [esi + 0x4180]
test al, 0xf
je 0x473141
test al, al
js 0x473141
call fcn.0047a020
mov ecx, dword [0x6815a8]
xor ebp, ebp
cmp dword [edi + 0x5348], ebp
jle 0x47328b
nop
mov eax, dword [edi + 0x5350]
mov ebx, dword [eax + ebp*8 + 4]
test ebx, ebx
je 0x47327e
mov eax, dword [ebx + 0x88]
cmp eax, dword [edi + 0x3ea0]
jne 0x47327e
mov al, byte [ebx + 0xa0]
test al, 1
je 0x47327e
mov edx, dword [ebx + 0x70]
test edx, edx
je 0x47327e
cmp dword [ebx + 0x1c], 0
jne 0x47327e
test al, 4
jne 0x47327e
movss xmm0, dword [ecx + 0x3894]
lea eax, [esp + 0x28]
movss xmm3, dword [ebx + 0x34]
addss xmm0, xmm0
movss xmm2, dword [ebx + 0x38]
movaps xmm4, xmm3
addss xmm2, dword [ebx + 0x40]
addss xmm3, dword [0x671fe8]
addss xmm4, dword [ebx + 0x3c]
addss xmm0, dword [ecx + 0x3c98]
push ecx
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0x24], xmm4
addss xmm0, dword [ebx + 0x38]
mov dword [esp], 0x40000000
push eax
lea eax, [esp + 0x20]
push eax
movss dword [esp + 0x28], xmm0
movss xmm3, dword [edx + 0x44]
movss xmm0, dword [edx + 0x40]
movaps xmm1, xmm3
addss xmm1, dword [edx + 0x4c]
movaps xmm2, xmm0
addss xmm2, dword [edx + 0x48]
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x38], xmm3
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x3c], xmm2
call fcn.00489bd0
mov ecx, dword [ebx + 0x70]
add esp, 0xc
mov esi, eax
mov ecx, dword [ecx + 0x288]
push 0
push ecx
add ecx, 0x78
call fcn.0048e2c0
mov ecx, dword [ebx + 0x70]
lea eax, [esp + 0x20]
push esi
push ecx
movss xmm0, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x288]
movss dword [esp], xmm0
push dword [ebx + 0x6c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00489290
mov ecx, dword [0x6815a8]
inc ebp
cmp ebp, dword [edi + 0x5348]
jl 0x473150
cmp dword [ecx + 0x40ec], 0
je 0x4732ae
mov dword [ecx + 0x40e8], 0x3f800000
mov dword [ecx + 0x40ec], 0
mov ecx, dword [0x6815a8]
cmp byte [edi + 0x4294], 0
je 0x473337
mov eax, dword [edi + 0x42b4]
mov dl, byte [edi + 0x42da]
inc eax
cmp eax, dword [edi + 0x3ea0]
jge 0x4732ed
test byte [edi + 0x4298], 0x20
jne 0x4732e9
mov eax, dword [edi + 0x42a0]
cmp byte [eax + ecx + 0xd60], 0
jne 0x4732ed
mov al, 1
jmp 0x4732ef
xor al, al
test dl, dl
jne 0x4732f7
test al, al
je 0x4732fc
call fcn.0046a4f0
cmp byte [edi + 0x4294], 0
je 0x473337
mov eax, dword [edi + 0x429c]
cmp eax, dword [edi + 0x3ea0]
jge 0x473337
test byte [edi + 0x4298], 1
jne 0x473337
push 0x5464fc
mov byte [edi + 0x4295], 1
call fcn.00480f70
add esp, 4
mov byte [edi + 0x4295], 0
mov eax, dword [edi + 0x3ea0]
mov byte [edi + 0x3eb0], 0
mov dword [edi + 0x3ea4], eax
mov esi, dword [0x6815a8]
cmp dword [esi + 0x3f40], 0
jne 0x473486
cmp dword [esi + 0x3f2c], 0
jne 0x473486
mov ebp, dword [esi + 0x4124]
test ebp, ebp
je 0x473381
cmp byte [ebp + 0xc9], 0
jne 0x473486
cmp byte [esi + 0x3678], 0
je 0x47344d
mov eax, dword [esi + 0x3f08]
test eax, eax
je 0x473433
mov ebx, dword [eax + 0x324]
test ebx, ebx
je 0x473437
test dword [ebx + 8], 0x4000000
je 0x4733d4
push 0x100
push dword [ebx + 0xd8]
call fcn.00476b00
add esp, 8
test al, al
je 0x47344d
mov eax, dword [esi + 0x3f08]
test ebx, ebx
je 0x473437
push eax
call fcn.00481dc0
add esp, 4
cmp byte [esi + 0x66], 0
je 0x47341e
test byte [ebx + 8], 1
je 0x4733f6
test byte [ebx + 0x36d], 1
je 0x47341e
lea eax, [esi + 0x3628]
mov ecx, ebx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004820a0
mov ecx, eax
call fcn.0046a8f0
test al, al
jne 0x47341e
mov dword [esi + 0x3f14], 0
cmp byte [esi + 0x3f37], 0
je 0x47344d
mov dword [esi + 0x3f14], 0
jmp 0x47344d
xor ebx, ebx
jmp 0x4733d4
test ebp, ebp
je 0x47344d
call fcn.00475610
test eax, eax
jne 0x47344d
push eax
call fcn.00474750
add esp, 4
cmp byte [esi + 0x3679], 0
je 0x473486
call fcn.00475610
mov esi, dword [esi + 0x3f08]
mov ebx, eax
test esi, esi
je 0x473479
test ebx, ebx
je 0x47347b
push ebx
push esi
call fcn.00476b80
add esp, 8
test al, al
jne 0x47347b
mov esi, ebx
push 1
push esi
call fcn.0046a760
add esp, 8
mov edx, dword [0x6815a8]
mov ecx, dword [edx + 0x3834]
lea ebx, [edx + 0x3830]
mov dword [esp + 0x10], edx
test ecx, ecx
jns 0x4734bc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.00486a80
mov edx, dword [esp + 0x10]
xor ebp, ebp
mov dword [ebx], 0
cmp dword [edx + 0x40dc], ebp
jle 0x47356c
mov eax, dword [edx + 0x40e4]
mov esi, dword [eax + ebp*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x5c], ecx
cmp eax, dword [edx + 0x3ea0]
jl 0x4734ff
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x10]
jae 0x4734ff
comiss xmm0, dword [esi + 0x14]
jb 0x473503
test ebp, ebp
jg 0x47355f
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x47351c
cmp byte [eax + 0xc3], 0
je 0x47355f
cmp byte [eax + 0xca], 0
jne 0x47355f
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jne 0x473555
lea edx, [eax + 1]
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x47353f
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add eax, ecx
jmp 0x473544
mov eax, 8
cmp eax, edx
mov ecx, ebx
cmovg edx, eax
push edx
call fcn.00486a80
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [eax + ecx*4], esi
inc dword [ebx]
inc ebp
cmp ebp, dword [edx + 0x40dc]
jl 0x4734d0
mov eax, dword [edx + 0x40e4]
lea ebx, [edi + 0x3ed4]
pop ebp
mov eax, dword [eax]
mov word [eax + 0x44], 0
mov byte [eax + 0x46], 0
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x4735a4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, ebx
call fcn.00486a80
mov dword [ebx], 0
mov ecx, ebx
push dword [edi + 0x3ebc]
call fcn.00486a80
mov ecx, dword [edi + 0x3ebc]
xor esi, esi
test ecx, ecx
je 0x473600
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x3ec4]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0xc3], 0
je 0x4735eb
test dword [eax + 8], 0x1000000
jne 0x4735f5
push eax
push ebx
call fcn.004650b0
add esp, 8
mov ecx, dword [edi + 0x3ebc]
inc esi
cmp esi, ecx
jne 0x4735d0
mov eax, dword [ebx]
mov dword [edi + 0x3ebc], eax
mov eax, dword [edi + 0x3ec0]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x3ec4]
mov dword [edi + 0x3ec0], ecx
mov ecx, dword [ebx + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x3ef8]
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0x40]
mov dword [edi + 0x3ec4], ecx
mov byte [eax + 0x10], 0
mov dword [edi + 0xd6c], 0
mov dword [edi + 0xd68], 0
mov ecx, dword [edi + 0x37bc]
test ecx, ecx
jns 0x47367b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x37b8]
call fcn.00486a00
push 0x50
lea eax, [edi + 0xd78]
mov dword [edi + 0x37b8], 0
push 0
push eax
call fcn.00513df0
push 3
push edi
call fcn.0046a0a0
add esp, 0x14
pop esi
pop ebx
pop edi
add esp, 0x28
ret