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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d3ede
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
mov ebp, ecx
push esi
push edi
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
fld st(0)
fmul qword [0x4daa50]
call fcn.004a7d38
fild dword [ebp + 0xd8]
mov dword [esp + 0x34], eax
fmul dword [ebp + 0xb4]
fst dword [esp + 0x30]
fmul qword [0x4daa50]
call fcn.004a7d38
fmul qword [0x4d9020]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.004a7d38
fld dword [esp + 0x30]
fmul qword [0x4d9020]
mov dword [esp + 0x50], eax
call fcn.004a7d38
mov dword [esp + 0x54], eax
mov al, byte [ebp + 0x99]
cmp al, 3
jne 0x4774e2
mov cl, byte [ebp + 0x9c]
test cl, cl
je 0x4774b5
add esi, dword [ebp + 0xe4]
mov dword [esp + 0x38], esi
mov al, byte [ebp + 0x9e]
test al, al
je 0x4774c9
add esi, dword [ebp + 0xe4]
mov dword [esp + 0x38], esi
test cl, cl
jne 0x4774d1
test al, al
je 0x4774e2
mov eax, dword [ebp + 0xe4]
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0x30]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x478258
cmp ebx, ecx
jge 0x47750a
test ebx, ebx
jl 0x47750a
mov eax, dword [eax + 4]
mov edi, dword [eax + ebx*4]
jmp 0x47750c
xor edi, edi
mov ecx, edi
mov dword [esp + 0x70], edi
call fcn.0049e8b0
mov esi, dword [ebp + 0x34]
mov eax, dword [ebp + 0x38]
test esi, esi
mov dword [esp + 0x80], eax
jg 0x47752d
mov esi, 1
test eax, eax
jg 0x47753f
mov ecx, edi
call fcn.0049e940
mov dword [esp + 0x80], eax
lea ecx, [esi - 1]
cmp ecx, eax
mov dword [esp + 0x44], ecx
jge 0x478247
mov eax, dword [ebp + 0x78]
xor edi, edi
cmp eax, edi
jne 0x478258
cmp dword [esp + 0x2c], edi
jne 0x477804
push 0x1c
call fcn.004bd49b
mov esi, eax
add esp, 4
mov dword [esp + 0x74], esi
cmp esi, edi
mov dword [esp + 0x358], edi
je 0x4775b2
push 0x80
mov dword [esi], 0x4daa40
call fcn.004bd49b
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x1f
mov dword [esi + 0x14], 0x40
mov dword [esi + 0x10], 1
mov ebx, esi
jmp 0x4775b4
xor ebx, ebx
cmp ebx, edi
mov dword [esp + 0x358], 0xffffffff
mov dword [esp + 0x2c], ebx
je 0x477661
mov eax, dword [ebp + 0xf4]
mov edx, dword [ebp + 0xf0]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x477645
add eax, dword [ebp + 0xfc]
lea edx, [eax*4 + 4]
push edx
call fcn.004bd49b
mov ecx, dword [ebp + 0xf4]
mov esi, dword [ebp + 0xec]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xec]
push eax
call fcn.004bd4c4
mov edx, dword [ebp + 0xfc]
mov eax, dword [ebp + 0xf4]
mov ecx, dword [esp + 0x1c]
add esp, 8
add eax, edx
mov dword [ebp + 0xec], ecx
mov dword [ebp + 0xf4], eax
mov eax, dword [ebp + 0xf0]
mov ecx, dword [ebp + 0xec]
mov dword [ecx + eax*4], ebx
mov eax, dword [ebp + 0xf0]
inc eax
mov dword [ebp + 0xf0], eax
mov edx, dword [ebp + 0xc8]
mov eax, dword [ebp + 0xf0]
inc edx
cmp eax, edx
jne 0x477685
mov eax, dword [ebp + 0x60]
push 0
push 0
push 0x404
push eax
call dword [0x4d676c]
fild dword [ebp + 0xd4]
fld dword [ebp + 0x8c]
fadd dword [ebp + 0x88]
fmul st(1)
call fcn.004a7d38
fild dword [ebp + 0xd8]
mov esi, dword [ebp + 0xcc]
sub esi, eax
fstp dword [esp + 0x14]
fld dword [ebp + 0x94]
fadd dword [ebp + 0x90]
mov dword [esp + 0x3c], esi
fmul dword [esp + 0x14]
call fcn.004a7d38
mov edi, dword [ebp + 0xd0]
fmul dword [ebp + 0x88]
sub edi, eax
mov dword [esp + 0x40], edi
call fcn.004a7d38
fld dword [esp + 0x14]
fmul dword [ebp + 0x90]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.004a7d38
lea ecx, [ebx + esi]
lea edx, [eax + edi]
mov dword [esp + 0x24], ecx
mov cl, byte [ebp + 0x99]
cmp cl, 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jne 0x4777fc
mov eax, dword [esp + 0x50]
mov ecx, 1
add eax, esi
cdq
idiv dword [esp + 0x34]
cmp eax, 1
jl 0x47772d
mov ecx, eax
movsx eax, byte [ebp + 0x98]
cdq
mov ebx, 3
idiv ebx
sub edx, 0
je 0x477774
dec edx
je 0x47775a
dec edx
jne 0x47777c
imul ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
sub esi, ecx
add esi, eax
mov dword [esp + 0x58], esi
jmp 0x47777c
imul ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov eax, esi
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x58], eax
jmp 0x47777c
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x38]
mov ecx, 1
lea eax, [edi + ebx]
cdq
idiv esi
cmp eax, 1
jl 0x477796
mov ecx, eax
movsx edx, byte [ebp + 0x98]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
sub edx, 0
je 0x4777d7
dec edx
je 0x4777c3
dec edx
jne 0x4777df
imul ecx, esi
sub edi, ecx
add edi, ebx
mov dword [esp + 0x5c], edi
jmp 0x4777df
imul ecx, esi
mov eax, edi
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x5c], eax
jmp 0x4777df
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [0x4d66a0]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
push 0x48
call fcn.004bd49b
add esp, 4
test eax, eax
je 0x477829
xor edx, edx
mov ebx, eax
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
jmp 0x47782d
xor ebx, ebx
xor edx, edx
mov ecx, dword [ebp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + 8]
jge 0x477843
cmp eax, edx
jl 0x477843
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov esi, dword [esp + 0x44]
mov dword [ebx], edx
mov dword [ebx + 4], esi
mov al, byte [ebp + 0x99]
cmp al, 3
je 0x477d0f
mov al, byte [0x4f55a8]
mov ecx, 0x4a
mov byte [esp + 0xd4], al
xor eax, eax
lea edi, [esp + 0xd5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp + 0x9e]
test al, al
je 0x47796e
mov al, byte [ebp + 0x9f]
test al, al
je 0x4778df
mov ecx, dword [edx]
test ecx, ecx
je 0x4778a0
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
jmp 0x4778a2
xor eax, eax
lea ecx, [esp + 0xd4]
push ecx
push eax
call fcn.00471240
mov al, byte [ebp + 0x9c]
add esp, 8
test al, al
je 0x4778cc
lea edx, [esp + 0xd4]
push 0x4f0a88
push edx
jmp 0x4778d9
lea eax, [esp + 0xd4]
push 0x4edc18
push eax
call dword [0x4d6340]
mov al, byte [ebp + 0x9c]
test al, al
jne 0x4778fb
mov cl, byte [ebp + 0x9f]
mov dword [esp + 0x14], 0
test cl, cl
je 0x477903
mov dword [esp + 0x14], 1
test al, al
je 0x47791a
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x47791a
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
mov edi, eax
jmp 0x47791c
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
push 0
push eax
push 1
push esi
call fcn.0049e100
mov ecx, dword [ebx]
push eax
push esi
call fcn.0049e050
mov ecx, dword [ebx]
push eax
push esi
call fcn.0049dfa0
mov ecx, dword [ebx]
push eax
call fcn.0049dc40
push eax
lea ecx, [esp + 0xf0]
push edi
mov edi, dword [0x4d637c]
push ecx
call edi
lea edx, [esp + eax + 0xf4]
push edx
call fcn.0049eeb0
add esp, 0x24
jmp 0x477a41
mov al, byte [ebp + 0x9c]
test al, al
jne 0x477986
mov al, byte [ebp + 0x9f]
test al, al
je 0x477a3b
mov ecx, dword [edx]
test ecx, ecx
je 0x477a3b
mov eax, dword [ecx]
push 0
call dword [eax + 0x10]
test eax, eax
je 0x477a3b
mov al, byte [ebp + 0x9f]
test al, al
je 0x4779cd
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x4779ba
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
jmp 0x4779bc
xor eax, eax
lea ecx, [esp + 0xd4]
push ecx
push eax
call fcn.00471240
add esp, 8
mov al, byte [ebp + 0x9c]
test al, al
je 0x477a3b
mov al, byte [ebp + 0x9f]
test al, al
je 0x4779f4
lea edx, [esp + 0xd4]
push 0x4ed924
push edx
call dword [0x4d6340]
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x477a07
mov eax, dword [ecx]
push 0
call dword [eax + 0x10]
mov esi, eax
jmp 0x477a09
xor esi, esi
mov edi, dword [0x4d637c]
lea ecx, [esp + 0xd4]
push ecx
call edi
mov edx, 0x12c
sub edx, eax
lea eax, [esp + 0xd4]
push edx
push eax
call edi
lea ecx, [esp + eax + 0xd8]
push ecx
push esi
call fcn.004b6ba8
jmp 0x477a41
mov edi, dword [0x4d637c]
lea edx, [esp + 0xd4]
test edx, edx
je 0x477bad
mov eax, dword [ebx + 4]
test eax, eax
jle 0x477a79
inc eax
push eax
lea eax, [esp + 0xd8]
push str.___d_
push eax
call edi
lea ecx, [esp + eax + 0xdc]
push ecx
call dword [0x4d6784]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [esp + 0xb4], edx
mov dword [esp + 0x94], edx
mov edx, dword [ebp + 0x70]
mov dword [esp + 0xac], eax
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x68]
push edx
push eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc0], esi
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], esi
call dword [0x4d6084]
mov eax, dword [ebp + 0x68]
mov edi, dword [0x4d6724]
lea ecx, [esp + 0xac]
push 0xc01
push ecx
lea edx, [esp + 0xdc]
push 0xffffffffffffffff
push edx
push eax
call edi
mov eax, dword [ebp + 0x68]
lea ecx, [esp + 0x8c]
push 0xc11
push ecx
lea edx, [esp + 0xdc]
push 0xffffffffffffffff
push edx
push eax
call edi
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x98]
cmp eax, ecx
mov dword [ebx + 0x40], 0x8810
je 0x477b4e
mov eax, dword [esp + 0x8c]
lea edx, [ebx + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x94]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x477b7c
mov esi, dword [esp + 0xac]
lea edx, [ebx + 0x18]
mov dword [ebx + 0x40], 0x8811
mov ecx, dword [esp + 0x24]
mov dword [edx], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0xb4], ecx
mov dword [edx + 4], esi
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x24], esi
call fcn.00470f80
add esp, 4
mov dword [ebx + 0x38], eax
jmp 0x477bb3
mov edi, dword [0x4d6724]
mov al, byte [ebp + 0x9d]
test al, al
je 0x477d0f
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x477d0f
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
test eax, eax
je 0x477d0f
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x477bed
mov eax, dword [ecx]
push 0
call dword [eax + 0x10]
jmp 0x477bef
xor eax, eax
push 0
push eax
call fcn.00471ba0
mov esi, eax
add esp, 8
test esi, esi
je 0x477d0f
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xa0], ecx
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xa8], edx
mov edx, dword [ebp + 0x68]
mov dword [esp + 0xbc], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
push ecx
push edx
mov dword [esp + 0xac], eax
call dword [0x4d6084]
mov ecx, dword [ebp + 0x68]
lea eax, [esp + 0xbc]
push 0xc01
push eax
push 0xffffffffffffffff
push esi
push ecx
call edi
lea edx, [esp + 0x9c]
push 0xc11
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x68]
push edx
push 0xffffffffffffffff
push esi
push eax
call edi
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xa8]
cmp ecx, edx
mov dword [ebx + 0x44], 0x8810
je 0x477ccd
mov edi, dword [esp + 0x9c]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x28], edi
mov edi, dword [esp + 0xa0]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0xa4]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
jmp 0x477cf8
mov edi, dword [esp + 0xbc]
lea edx, [ebx + 0x28]
mov dword [ebx + 0x44], 0x8811
mov eax, dword [esp + 0x24]
mov dword [edx], edi
mov edi, dword [esp + 0xc0]
mov dword [edx + 4], edi
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
sub edx, eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], edx
mov dword [ebx + 0x3c], esi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x477d1d
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x477d3c
mov eax, dword [ebp + 0xe4]
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
sub edx, eax
add ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ecx
lea esi, [ebp + 0x3c]
push esi
call dword [0x4d6634]
test eax, eax
jne 0x477db7
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 4]
mov dword [esp + 0x68], ecx
xor ecx, ecx
test eax, eax
setle cl
dec ecx
mov dword [esp + 0x6c], edx
and ecx, eax
xor edx, edx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
test edi, edi
setle dl
dec edx
push esi
and edx, edi
mov dword [esp + 0x68], edx
mov ecx, dword [ebx]
call fcn.0049dfa0
cmp dword [esp + 0x68], eax
jl 0x477d97
mov ecx, dword [ebx]
push esi
call fcn.0049dfa0
mov dword [esp + 0x68], eax
mov ecx, dword [ebx]
push esi
call fcn.0049e050
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jl 0x477de4
mov ecx, dword [ebx]
push esi
call fcn.0049e050
mov ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x477de4
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x70]
push esi
mov ecx, edi
call fcn.0049e050
push eax
push esi
mov ecx, edi
call fcn.0049dfa0
push eax
push 0
lea eax, [esp + 0x6c]
push 0
push eax
call dword [0x4d6848]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub edi, eax
mov al, byte [ebp + 0x99]
sub ecx, edx
cmp al, 3
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ecx
jne 0x477ebb
mov al, byte [ebp + 0x9c]
test al, al
je 0x477e66
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x477e66
mov edx, dword [ecx]
push 0
call dword [edx + 0x10]
test eax, eax
je 0x477e66
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x477e3e
mov eax, dword [ecx]
push 0
call dword [eax + 0x10]
jmp 0x477e40
xor eax, eax
lea ecx, [esp + 0x250]
push 0x100
push ecx
push eax
call fcn.004b6ba8
lea edx, [esp + 0x250]
push edx
call fcn.00470f80
add esp, 4
mov dword [ebx + 0x38], eax
mov al, byte [ebp + 0x9e]
test al, al
je 0x477ebb
mov ecx, dword [ebx]
push 0
push 0
push 1
push esi
call fcn.0049e100
mov ecx, dword [ebx]
push eax
push esi
call fcn.0049e050
mov ecx, dword [ebx]
push eax
push esi
call fcn.0049dfa0
mov ecx, dword [ebx]
push eax
call fcn.0049dc40
push eax
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0049eeb0
lea ecx, [esp + 0x224]
push ecx
call fcn.00470f80
add esp, 0x28
mov dword [ebx + 0x3c], eax
mov al, byte [ebp + 0x99]
cmp al, 1
jne 0x477ed5
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10], edx
jmp 0x477f7c
test al, al
jne 0x477f2d
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebp + 0xd4]
mov esi, dword [0x4d6350]
push ecx
push edx
push edi
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [ebp + 0x50]
call fcn.004a7d38
mov edx, dword [esp + 0x88]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xe0]
mov ecx, dword [ebp + 0xd8]
push eax
push ecx
push edx
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [ebp + 0x50]
call fcn.004a7d38
jmp 0x477f7c
cmp al, 2
jne 0x477f53
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xa8]
call fcn.004a7d38
mov dword [ebx + 0x10], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xac]
jmp 0x477f77
cmp al, 3
jne 0x477f7f
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
call fcn.004a7d38
mov dword [ebx + 0x10], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
call fcn.004a7d38
mov dword [ebx + 0x14], eax
mov al, byte [ebp + 0x9a]
test al, al
je 0x477fe0
fild dword [esp + 0x84]
fild dword [ebx + 0x10]
fdiv st(1)
fst qword [esp + 0xcc]
fild dword [esp + 0x88]
fstp qword [esp + 0x74]
fild dword [ebx + 0x14]
fdiv qword [esp + 0x74]
fstp qword [esp + 0x14]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x477fd4
fstp st(0)
fld qword [esp + 0x74]
fmul qword [esp + 0xcc]
call fcn.004a7d38
mov dword [ebx + 0x14], eax
jmp 0x477fe0
fmul qword [esp + 0x14]
call fcn.004a7d38
mov dword [ebx + 0x10], eax
mov al, byte [ebp + 0x99]
mov dword [esp + 0x14], 0
cmp al, 3
jne 0x478104
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
fisub dword [ebx + 0x10]
call fcn.004a7d38
mov esi, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
add eax, esi
mov dword [ebx + 8], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
fisub dword [ebx + 0x14]
call fcn.004a7d38
add eax, dword [esp + 0x4c]
mov dword [ebx + 0xc], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
call fcn.004a7d38
mov ecx, eax
mov eax, dword [ebp + 0xe4]
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [ebx + 0x38]
sar edi, 1
add edx, ecx
add edi, edx
test eax, eax
je 0x47808c
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x40], 0x8801
mov eax, dword [ebp + 0xe4]
add eax, edi
lea edx, [esi + ecx]
push eax
push edx
push edi
lea eax, [ebx + 0x18]
push esi
push eax
call dword [0x4d6848]
add edi, dword [ebp + 0xe4]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4780b7
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x44], 0x8801
mov ecx, dword [ebp + 0xe4]
add ecx, edi
lea eax, [esi + edx]
push ecx
push eax
push edi
lea ecx, [ebx + 0x28]
push esi
push ecx
call dword [0x4d6848]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esi, eax
mov dword [esp + 0x48], esi
sub esi, edx
add esi, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jle 0x47819c
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
sub eax, esi
add eax, ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x47819c
jmp 0x478194
movsx eax, byte [ebp + 0x98]
cdq
mov ecx, 3
idiv ecx
sub edx, 0
je 0x478142
dec edx
je 0x47812c
dec edx
jne 0x478149
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x10]
sub edx, eax
mov dword [ebx + 8], edx
jmp 0x478149
mov eax, dword [esp + 0x3c]
mov edi, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x478146
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
movsx ecx, byte [ebp + 0x98]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sub edx, 0
je 0x47818d
dec edx
je 0x478177
dec edx
jne 0x478194
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x14]
sub edx, eax
mov dword [ebx + 0xc], edx
jmp 0x478194
mov eax, dword [esp + 0x40]
mov edi, dword [ebx + 0x14]
mov ecx, dword [esp + 0x20]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x478191
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x47821b
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
inc ecx
cmp edx, ecx
jne 0x47820b
mov esi, eax
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
add edx, edi
lea eax, [edx*4 + 4]
push eax
call fcn.004bd49b
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x78], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
push eax
call fcn.004bd4c4
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x7c]
add esp, 8
add eax, edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [edx + ecx*4], ebx
mov ecx, dword [eax + 8]
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47822b
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x80]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x47754e
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 0x30]
inc ebx
mov dword [esp + 0x30], ebx
cmp ebx, dword [eax + 8]
jl 0x4774fe
mov ecx, dword [esp + 0x350]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret