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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [ebp + 0x30]
push ebx
mov ebx, ecx
push esi
mov esi, dword [eax + 4]
push edi
lea eax, [ebx + 0xc8]
mov dword [esp + 0x18], ebx
push esi
mov ecx, eax
mov dword [esp + 0xac], eax
call fcn.00445b0d
mov ecx, dword [ebp + 0x30]
lea edi, [esi + 1]
mov eax, dword [eax + 4]
cmp dword [ecx], eax
lea ecx, [esp + 0x150]
cmovbe edi, esi
mov esi, dword [ebp + 0x2c]
sub edi, dword [esi + 4]
push edi
mov dword [esp + 0x6c], edi
call fcn.004eeec4
push dword [esp + 0x2e4]
mov ecx, ebx
push edi
push dword [esi + 4]
call fcn.004ee093
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0x30]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
je 0x4ed4bb
lea ecx, [ebx + 0xc4]
call fcn.004efecb
mov ecx, 0x2009
cmp word [eax], cx
je 0x4ed4bb
jmp 0x4ed4b1
lea edi, [edx - 1]
mov ecx, ebx
push edi
call fcn.004ea592
test al, al
je 0x4ed4b7
mov edx, edi
mov dword [esp + 0x1c], edi
cmp edx, dword [esi]
ja 0x4ed49c
jmp 0x4ed4bb
mov edx, dword [esp + 0x1c]
lea edi, [esp + 0x7c]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x7c]
push edx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov ecx, esi
call fcn.004ee9e9
movd xmm0, dword [ebp + 0x18]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
push edi
mov eax, dword [ecx]
push ebx
movss dword [esp + 0x30], xmm0
call dword [eax + 0x2b0]
cmp dword [ebp + 0x28], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x70], edi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x1c], eax
je 0x4ed53a
mov eax, dword [ebp + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x28]
mov dword [ecx + 4], eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esp + 0x88]
mov ecx, esi
push eax
push dword [ebp + 0x2c]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call fcn.004ee359
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.004cbdfc
dec eax
sub eax, 1
je 0x4ed5e9
sub eax, 1
je 0x4ed5c6
sub eax, 1
jne 0x4ed60d
mov ecx, dword [ebp + 0x2c]
cmp dword [ecx], eax
jne 0x4ed57a
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4ed56f
mov eax, dword [eax + 4]
jmp 0x4ed571
xor eax, eax
mov edx, dword [ebp + 0x30]
cmp dword [edx], eax
je 0x4ed592
jmp 0x4ed57d
mov edx, dword [ebp + 0x30]
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4ed58c
mov eax, dword [eax + 4]
jmp 0x4ed58e
xor eax, eax
cmp dword [edx], eax
jne 0x4ed5ae
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x50]
cmp eax, 0xff
je 0x4ed5a5
cmp eax, 0xffffffff
jne 0x4ed5a7
xor eax, eax
cmp eax, 1
je 0x4ed5c9
jmp 0x4ed626
lea eax, [esp + 0x7c]
push eax
push ecx
push edi
push dword [ebp + 0x18]
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.004ee1c1
jmp 0x4ed626
mov ecx, dword [ebp + 0x2c]
cmp byte [ebp + 0x10], 0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
subss xmm0, dword [ebp + 0x20]
movss dword [esp + 0x28], xmm0
jne 0x4ed626
lea eax, [esp + 0x7c]
push eax
push ecx
jmp 0x4ed61b
sub edi, dword [ebp + 0x18]
inc edi
movd xmm0, edi
cvtdq2ps xmm0, xmm0
subss xmm0, dword [ebp + 0x20]
mulss xmm0, dword [0x8adf54]
addss xmm0, dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
cmp byte [ebp + 0x10], 0
jne 0x4ed626
lea eax, [esp + 0x7c]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.004ee85e
or dword [esp + 0x1c], 0xffffffff
xor ecx, ecx
mov eax, ecx
mov dword [esp + 0x14], ecx
and dword [esp + 0x48], eax
mov dh, cl
mov dl, cl
mov byte [esp + 0x13], cl
mov edi, ecx
mov dword [esp + 0x60], ecx
mov esi, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
or ecx, 0xffffffff
mov dword [esp + 0x2c], eax
mov byte [esp + 0x12], dh
mov byte [esp + 0x11], dl
mov dword [esp + 0x38], ecx
mov byte [esp + 0x54], 6
cmp dword [esp + 0x68], eax
jbe 0x4edc59
mov eax, dword [esp + 0x2e4]
mov ecx, dword [esp + 0x48]
push dword [eax + ecx*4]
mov ecx, dword [esp + 0xac]
call fcn.00445b0d
mov dword [esp + 0x14], eax
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
add ecx, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], ecx
mov ecx, eax
call fcn.004e9f1d
mov dword [esp + 0x20], eax
test eax, eax
je 0x4edc45
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xc4
push ecx
push esp
mov ecx, eax
mov dword [esp + 0x68], eax
call fcn.0042664b
mov ecx, dword [esp + 0x1c]
call fcn.0044638c
push ebx
test al, al
je 0x4ed8ec
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1a8]
test al, al
je 0x4ed70e
cvttss2si eax, dword [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x350]
jmp 0x4edc32
mov ecx, dword [esp + 0x20]
push 0
push ebx
mov eax, dword [ecx]
call dword [eax + 0x2b0]
push eax
mov ecx, ebx
mov dword [esp + 0x70], eax
call fcn.0046cd10
mov ecx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x5c], eax
call fcn.004e9ef2
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
mov ecx, eax
push ebx
mov edx, dword [eax]
call dword [edx + 0x1b4]
test eax, eax
jne 0x4edc32
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x48]
mov dword [esp + 0x44], eax
push edx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 0x430]
mov ecx, dword [esp + 0x20]
push 0
push ebx
mov eax, dword [ecx]
call dword [eax + 0x2b0]
mov ecx, eax
call fcn.004efe5b
dec eax
cmp eax, 7
ja case.default.0x4ed79a
jmp dword [eax*4 + 0x4ee04b]
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
cmp eax, esi
movzx ecx, byte [esp + 0x13]
cmovle eax, esi
xor edx, edx
inc edx
mov esi, eax
cmp byte [esp + 0x13], dl
cmovb ecx, edx
mov byte [esp + 0x13], cl
jmp 0x4ed885
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
cmp eax, esi
movzx ecx, byte [esp + 0x12]
cmovle eax, esi
xor edx, edx
inc edx
mov esi, eax
cmp byte [esp + 0x12], dl
cmovb ecx, edx
mov byte [esp + 0x12], cl
jmp 0x4ed885
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
cmp eax, esi
movzx ecx, byte [esp + 0x11]
cmovle eax, esi
xor edx, edx
inc edx
mov esi, eax
cmp byte [esp + 0x11], dl
cmovb ecx, edx
mov byte [esp + 0x11], cl
jmp 0x4ed885
mov eax, dword [esp + 0x40]
cmp eax, edi
mov ecx, dword [esp + 0x44]
cmovle eax, edi
cmp ecx, dword [esp + 0x2c]
mov edi, eax
cmovle ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
jmp 0x4ed885
mov ecx, dword [esp + 0x20]
push dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x434]
mov ecx, dword [esp + 0x40]
sub ecx, eax
cmp ecx, edi
cmovle ecx, edi
mov edi, ecx
mov ecx, dword [esp + 0x44]
add eax, ecx
cmp eax, dword [esp + 0x2c]
jle 0x4ed885
mov dword [esp + 0x2c], eax
jmp 0x4ed885
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
cmp dword [esp + 0x4c], esi
cmovg esi, dword [esp + 0x4c]
cvttss2si eax, dword [esp + 0x28]
inc dword [esp + 0x60]
push ecx
push ecx
mov ecx, esp
and dword [ecx + 4], 0
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x364]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc0]
push 0
push ebx
push eax
call fcn.0047f3a0
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
inc ecx
movd xmm0, ecx
mov ecx, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
lea ecx, [ecx + 0xdc]
movss dword [esp + 0x24], xmm0
call fcn.0042753c
mov edx, dword [esp + 0x18]
movss dword [eax], xmm0
jmp 0x4edb7f
mov ecx, dword [esp + 0x18]
call fcn.004e9e96
mov dword [esp + 0x34], eax
mov byte [esp + 0x54], 6
cmp dword [esp + 0x6c], eax
jne 0x4ed923
mov ecx, dword [esp + 0x14]
push ebx
call fcn.004e9ef2
cmp dword [esp + 0x70], eax
jne 0x4ed91f
cmp dword [esp + 0x58], 0
jne 0x4ed9d2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x70], eax
call fcn.004e9ef2
push dword [esp + 0x34]
mov ecx, ebx
mov dword [esp + 0x74], eax
call fcn.0046cd10
mov dword [esp + 0x58], eax
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x34]
add eax, 0x24
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x74], eax
cmp dword [eax], 0
jbe 0x4ed9a4
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [eax + 0x24]
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, dword [esp + 0x78]
push eax
push ebx
call fcn.004e7bc3
mov ecx, eax
sub eax, dword [esp + 0x30]
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add edx, eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
call fcn.004e9f1d
cmp eax, dword [ebp + 0xc]
je 0x4ed9cd
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x398]
test ecx, ecx
je 0x4ed9cd
cmp ecx, 0xffffffff
je 0x4ed9cd
mov al, cl
mov byte [esp + 0x54], al
jmp 0x4ed9d2
mov byte [esp + 0x54], 6
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [edx + 4]
cmp dword [eax], ecx
jbe 0x4ed9f7
mov ecx, dword [esp + 0x18]
push eax
call fcn.004eeb3a
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 4]
jmp 0x4ed9f9
mov eax, ecx
mov ecx, dword [edx + 8]
add ecx, eax
cmp dword [esp + 0x7c], ecx
jae 0x4eda25
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x7c]
push eax
call fcn.004eeb3a
mov ecx, dword [esp + 0x50]
cmp ecx, eax
mov edx, dword [esp + 0x14]
cmova eax, ecx
mov dword [esp + 0x64], eax
jmp 0x4eda2d
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
cmp ecx, eax
jb 0x4eda88
mov ecx, dword [esp + 0x5c]
xor eax, eax
inc eax
mov dword [esp + 0xb0], 0x88ac08
mov dword [esp + 0xb4], eax
mov ecx, dword [ecx]
lea eax, [ecx + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [edx + 4]
lea eax, [ecx + eax*2]
mov dword [esp + 0xb8], eax
lea ecx, [esp + 0xb8]
mov eax, dword [edx + 8]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb0]
push eax
call fcn.004340cb
test al, al
je 0x4edc32
movzx eax, byte [esp + 0x54]
sub eax, 1
je 0x4edb3c
sub eax, 1
je 0x4edb18
sub eax, 1
je 0x4edafa
sub eax, 4
je 0x4edb3c
sub eax, 1
je 0x4edafa
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
je 0x4edadf
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 0x434]
mov ecx, dword [esp + 0x24]
sub ecx, eax
add eax, dword [esp + 0x30]
cmp ecx, edi
cmovle ecx, edi
cmp eax, dword [esp + 0x2c]
mov edi, ecx
cmovle eax, dword [esp + 0x2c]
jmp 0x4edaf4
mov eax, dword [esp + 0x24]
cmp eax, edi
cmovle eax, edi
mov edi, eax
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x2c]
jle 0x4edb58
mov dword [esp + 0x2c], eax
jmp 0x4edb58
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x24]
cmp eax, esi
cmovle eax, esi
xor ebx, ebx
inc ebx
mov esi, eax
cmp byte [esp + 0x11], bl
jae 0x4edb58
mov byte [esp + 0x11], bl
jmp 0x4edb58
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x24]
movzx ecx, byte [esp + 0x12]
cmp eax, esi
cmovle eax, esi
xor ebx, ebx
inc ebx
mov esi, eax
cmp byte [esp + 0x12], bl
cmovb ecx, ebx
mov byte [esp + 0x12], cl
jmp 0x4edb58
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x24]
cmp eax, esi
cmovle eax, esi
xor ebx, ebx
inc ebx
mov esi, eax
cmp byte [esp + 0x13], bl
jae 0x4edb58
mov byte [esp + 0x13], bl
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xdc]
lea eax, [ecx + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x68]
push dword [esp + 0x58]
call fcn.004eebe7
movss dword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x14]
xor ebx, ebx
inc ebx
test byte [ecx + 0x16], bl
je 0x4edb93
addss xmm0, dword [esp + 0x28]
jmp 0x4edb99
movss xmm0, dword [esp + 0x28]
mov eax, dword [edx + 0xe8]
movss dword [esp + 0x34], xmm0
test eax, eax
je 0x4edbae
mov edx, dword [eax + 4]
jmp 0x4edbb0
xor edx, edx
mov ax, word [ecx + 0x16]
shr ax, 0xd
and al, bl
mov ebx, dword [ecx + 0x18]
mov byte [esp + 0x78], al
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x5c], eax
movzx eax, byte [ecx + 0x20]
push eax
mov al, byte [ecx + 0x16]
push edx
push dword [esp + 0x80]
and al, 0x1f
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.004e9ef2
mov ecx, dword [esp + 0x60]
movss xmm1, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x78]
push ebx
push dword [esp + 0x74]
sub eax, ecx
push eax
push ecx
push dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
call fcn.004eee24
movss xmm0, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
addss xmm0, dword [esp + 0x28]
mov ebx, dword [ebp + 8]
cmove ecx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
movss dword [esp + 0x28], xmm0
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x68]
jb 0x4ed671
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dl, byte [esp + 0x11]
mov dh, byte [esp + 0x12]
mov dword [esp + 0x14], edi
lea ebx, [eax + edi]
cmp esi, ebx
jle 0x4edc85
test dh, dh
jne 0x4edc6e
cmp byte [esp + 0x13], dh
je 0x4edc9c
test dl, dl
je 0x4edc81
mov edx, esi
sub edx, eax
sub edx, edi
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov dword [esp + 0x14], edi
mov eax, esi
sub eax, edi
mov edx, dword [esp + 0x1c]
cmp edx, 0xffffffff
je 0x4edcb2
cmp edx, 0xfffffffe
je 0x4edcb2
mov dword [esp + 0x94], edx
jmp 0x4edcba
mov ebx, esi
sub ebx, eax
test dl, dl
je 0x4edcac
mov edi, ebx
mov dword [esp + 0x14], edi
jmp 0x4edc85
sub ebx, edi
mov eax, ebx
jmp 0x4edc76
and dword [esp + 0x94], 0
cmp ecx, 0xffffffff
je 0x4edccd
cmp ecx, 0xfffffffe
je 0x4edccd
mov dword [esp + 0x98], ecx
jmp 0x4edcd5
and dword [esp + 0x98], 0
mov ecx, dword [ebp + 0x2c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x8c], edi
mov ecx, dword [ecx]
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebp + 0x30]
mov ecx, dword [ecx]
mov dword [esp + 0xa0], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x88], ecx
xor ecx, ecx
mov dword [esp + 0xa4], ecx
lea ecx, [eax + edi]
mov eax, dword [ebp + 0x34]
lea edi, [ebx + 0xe8]
mov dword [esp + 0x90], ecx
mov dword [eax], ecx
mov esi, dword [edi]
test esi, esi
je 0x4edd2b
mov esi, dword [esi + 4]
jmp 0x4edd2d
xor esi, esi
xor ecx, ecx
lea eax, [esi + 1]
test eax, eax
cmovs eax, ecx
mov ecx, edi
push eax
call fcn.004efd73
mov edi, dword [edi]
shl esi, 5
add edi, 0xc
add edi, esi
lea esi, [esp + 0x88]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x68], ecx
jbe 0x4ee033
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x60], 0
jle 0x4ee033
mov eax, dword [esp + 0x2e4]
push dword [eax + ecx*4]
lea ecx, [ebx + 0xc8]
call fcn.00445b0d
push ecx
push ecx
push esp
lea ecx, [ebx + 0xc4]
mov edi, eax
call fcn.0042664b
mov ecx, edi
call fcn.0044638c
test al, al
je 0x4ee020
mov ecx, edi
call fcn.004e9f1d
mov ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x4ee033
mov edx, dword [ebx]
mov ecx, ebx
push dword [ebp + 8]
call dword [edx + 0x1b4]
test eax, eax
jne case.default.0x4ede30
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xb8]
mov edi, dword [ebx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x348]
mov ecx, ebx
push dword [eax + 4]
push dword [ebp + 8]
call dword [edi + 0x490]
push eax
push dword [ebp + 8]
mov ecx, ebx
call dword [edi + 0x450]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [ebp + 8]
dec dword [esp + 0x60]
push 0
push edi
call dword [eax + 0x2b0]
mov eax, dword [eax + 0x398]
test eax, eax
je 0x4ede24
cmp eax, 0xffffffff
jne 0x4ede27
push 6
pop eax
cmp eax, 9
ja case.default.0x4ede30
jmp dword [eax*4 + 0x4ee06b]
lea ecx, [esp + 0x1c]
xor eax, eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
push ecx
push edi
mov ecx, ebx
call dword [eax + 0x430]
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x434]
mov ecx, dword [esp + 0x38]
mov edi, eax
add ecx, dword [esp + 0x48]
cmp dword [esp + 0x1c], ecx
push ecx
mov ecx, ebx
jle 0x4edeab
lea eax, [esp + 0xc4]
push eax
call fcn.0047f645
mov eax, dword [eax + 4]
sub eax, dword [esp + 0x1c]
add eax, edi
add eax, esi
mov edx, dword [ebx]
mov ecx, ebx
add eax, dword [ebp + 0x14]
push eax
call dword [edx + 0x358]
jmp case.default.0x4ede30
lea eax, [esp + 0xd4]
push eax
call fcn.0047f645
mov eax, dword [eax + 4]
sub eax, dword [esp + 0x48]
jmp 0x4ede94
push ecx
lea eax, [esp + 0xe4]
mov ecx, ebx
push eax
call fcn.0047f645
mov eax, dword [eax + 4]
jmp 0x4ede98
push 0
push edi
lea eax, [esp + 0xf8]
mov ecx, ebx
push eax
call fcn.0047f3a0
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x90]
dec eax
add eax, ecx
cdq
sub eax, edx
mov edi, eax
lea eax, [esp + 0x100]
sar edi, 1
push ecx
push eax
mov ecx, ebx
call fcn.0047f645
mov eax, dword [eax + 4]
add eax, edi
jmp 0x4ede98
push 0
push edi
lea eax, [esp + 0x118]
mov ecx, ebx
push eax
call fcn.0047f3a0
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x90]
jge 0x4edf9f
lea ecx, [ebx + 0x10]
call fcn.0042d8ef
push 0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2b0]
push eax
mov ecx, edi
call fcn.0046cd10
mov eax, dword [eax + 0x24]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 1
lea eax, [eax + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
neg eax
sub eax, ecx
mov ecx, dword [esp + 0x90]
lea edi, [eax + esi]
lea eax, [edx + 1]
add eax, edi
cmp eax, ecx
jle 0x4edf93
mov edi, ecx
lea eax, [edx + 1]
sub edi, eax
lea eax, [esp + 0x120]
jmp 0x4edf06
push ecx
lea eax, [esp + 0x134]
mov ecx, ebx
push eax
call fcn.0047f645
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x90]
inc edx
mov edi, dword [ebx]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 4]
mov ecx, ebx
add eax, dword [ebp + 0x14]
push eax
call dword [edi + 0x358]
mov esi, dword [esp + 0x14]
jmp case.default.0x4ede30
push ecx
lea eax, [esp + 0x144]
mov ecx, ebx
push eax
call fcn.0047f645
mov ebx, dword [ebx]
mov ecx, dword [esp + 0x38]
mov edi, dword [eax + 0xc]
lea eax, [esp + 0xb0]
push eax
call dword [ebx + 0x348]
mov ecx, dword [esp + 0x90]
sub ecx, dword [eax + 4]
sub ecx, edi
add ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x3c]
call dword [ebx + 0x358]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x58], ecx
cmp ecx, dword [esp + 0x68]
jb 0x4edd69
lea ecx, [esp + 0x2e0]
call fcn.00421e54
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0x30