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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov ebx, ecx
mov esi, edx
sub esp, 0x8c
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x70]
mov dword [esp + 0x48], edx
mov eax, ecx
lea ebp, [esi + ecx*4]
cdq
idiv ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
imul eax, ebx
imul ebx, dword [esp + 0xa4]
lea ecx, [esi + eax*4]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x64], ecx
test eax, eax
mov eax, 0x1000000
mov ecx, eax
cmovne ecx, dword [esp + 0x1c]
lea ebx, [esi + ebx*4]
mov esi, dword [edi + 0x78]
mov eax, 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ecx
lea ecx, [edi + 0x7c]
test esi, esi
mov dword [esp + 0x68], esi
cmovg eax, ecx
cmp ebp, ebx
mov dword [esp + 0x3c], eax
jb 0x4eb7e0
cmp dword [edi + 0x30], 0
je 0x4ec3d2
mov ebx, dword [edi + 0x38]
mov dword [edi + 0x30], 1
test ebx, ebx
jne 0x4ec210
mov dword [edi], 3
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [edi + 0x98]
xor eax, eax
mov esi, edx
test ecx, ecx
jne 0x4ec290
add eax, dword [edi + 0xa8]
lea ebx, [edi + 0x18]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x54], ebx
mov ebx, dword [edi + 0x94]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x88]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x7c]
mov dword [esp + 0x60], eax
mov eax, ebp
mov ebp, esi
mov esi, eax
nop
lea esi, [esi]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x28], ecx
jg 0x4eb89c
mov eax, dword [edi + 0x18]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0x50], eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x34]
mov dword [edi + 0x5c], eax
mov eax, esi
sub eax, dword [esp + 0x48]
sar eax, 2
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x78]
test eax, eax
jle 0x4eb891
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0050c0a0
mov eax, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x28], eax
test dword [esp + 0x2c], ebp
jne 0x4eb8d8
mov ecx, dword [edi + 0x98]
xor eax, eax
test ecx, ecx
je 0x4eb8ce
mov eax, dword [esp + 0x1c]
mov edx, ebp
sar edx, cl
sar eax, cl
imul eax, dword [edi + 0x9c]
add eax, edx
mov edx, dword [edi + 0xa0]
imul eax, dword [edx + eax*4], 0x224
add eax, dword [edi + 0xa8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x4eb990
mov eax, dword [eax + 0x18]
mov dword [esi], eax
add esi, 4
add ebp, 1
cmp dword [esp + 0x30], ebp
jg 0x4eb97b
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xa4], eax
jl 0x4eb92b
mov ebp, dword [esp + 0xa8]
test ebp, ebp
je 0x4eb92b
test al, 0xf
jne 0x4eb92b
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [esp + 0xa8]
mov ebx, dword [esp + 0x3c]
xor ebp, ebp
test ebx, ebx
je 0x4eb97b
mov eax, dword [esp + 0x38]
cmp eax, esi
jae 0x4eb97b
mov ebp, dword [ebx]
mov dword [esp + 0x24], edi
add eax, 4
mov edi, dword [eax - 4]
mov ecx, dword [ebx + 4]
imul edx, edi, 0x1e35a7bd
shr edx, cl
cmp esi, eax
mov dword [ebp + edx*4], edi
ja 0x4eb943
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x3c], ebx
mov eax, ecx
not eax
add eax, esi
shr eax, 2
lea eax, [ecx + eax*4 + 4]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x34], esi
ja 0x4eb830
mov ebp, esi
jmp 0x4eb7a8
mov eax, dword [edi + 0x2c]
cmp eax, 0x1f
mov dword [esp + 0x24], eax
jg 0x4ebea0
mov ebx, dword [esp + 0x24]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
mov ecx, ebx
mov dword [esp + 0x44], edx
and ecx, 0x3f
mov dword [esp + 0x40], eax
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4eb9c3
mov eax, edx
mov edx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4ebae0
and edx, 0x3f
lea edx, [eax + edx*8 + 0x24]
mov eax, ebx
mov ecx, dword [edx]
mov edx, dword [edx + 4]
add eax, ecx
cmp ecx, 0xff
jg 0x4eba80
mov dword [edi + 0x2c], eax
mov dword [esi], edx
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x4ec390
mov eax, dword [edi + 0x28]
cmp dword [edi + 0x24], eax
jne 0x4eb8ec
cmp dword [edi + 0x2c], 0x40
jle 0x4eb8ec
mov ebp, esi
cmp dword [edi + 0x2c], 0x40
jg 0x4eb7b2
mov esi, dword [esp + 0xa8]
mov dword [edi + 0x30], 0
test esi, esi
je 0x4eba55
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xa4], eax
cmovle eax, dword [esp + 0xa4]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [esp + 0xa8]
mov eax, ebp
sub eax, dword [esp + 0x48]
mov dword [edi], 0
sar eax, 2
mov dword [edi + 0x70], eax
add esp, 0x8c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, 0x100
mov dword [esp + 0x24], edx
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x4ec390
mov eax, dword [edi + 0x24]
cmp dword [edi + 0x28], eax
je 0x4ebf50
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4eb8ec
mov ebx, dword [esp + 0x24]
cmp ebx, 0xff
jg 0x4ebba0
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4ebf70
mov edx, dword [eax + 0x18]
shl ebx, 8
or edx, ebx
mov dword [esi], edx
jmp 0x4eb8ec
mov eax, dword [esp + 0x20]
movzx edx, dl
mov ecx, dword [eax]
lea eax, [ecx + edx*4]
movzx ecx, byte [eax]
mov dword [esp + 0x50], eax
movzx eax, word [eax + 2]
lea edx, [ecx - 8]
mov word [esp + 0x4c], ax
test edx, edx
mov dword [esp + 0x58], edx
jle 0x4ebb56
add dword [esp + 0x24], 8
mov edx, dword [esp + 0x44]
mov ebx, 1
mov eax, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x40]
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
movzx ecx, byte [esp + 0x58]
cmovne eax, edx
movzx edx, word [esp + 0x4c]
shl ebx, cl
mov ecx, ebx
shl edx, 2
sub ecx, 1
and ecx, eax
lea edx, [edx + ecx*4]
add edx, dword [esp + 0x50]
movzx eax, word [edx + 2]
movzx ecx, byte [edx]
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x2c], eax
movzx eax, word [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0x24], eax
jne 0x4ec390
mov eax, dword [edi + 0x24]
cmp dword [edi + 0x28], eax
jne 0x4ebaaf
cmp dword [edi + 0x2c], 0x40
jg 0x4eba16
mov ebx, dword [esp + 0x24]
cmp ebx, 0xff
jle 0x4ebabf
lea esi, [esi]
mov ebx, dword [esp + 0x24]
cmp ebx, 0x117
jg 0x4ebec0
lea eax, [ebx - 0x100]
cmp eax, 3
jg 0x4ec320
sub ebx, 0xff
mov dword [esp + 0x4c], ebx
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
mov edx, dword [ebx + 0x10]
movzx eax, al
lea edx, [edx + eax*4]
movzx eax, byte [edx]
mov dword [esp + 0x58], edx
movzx edx, word [edx + 2]
lea ebx, [eax - 8]
mov word [esp + 0x50], dx
test ebx, ebx
jle 0x4ebc63
add dword [esp + 0x24], 8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4ebc2e
mov eax, edx
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x40], eax
mov eax, 1
shl eax, cl
movzx ecx, word [esp + 0x50]
mov dword [esp + 0x44], edx
sub eax, 1
and eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
shl ecx, 2
lea eax, [ecx + eax*4]
add edx, eax
movzx ebx, word [edx + 2]
movzx eax, byte [edx]
mov word [esp + 0x50], bx
add eax, dword [esp + 0x24]
movzx edx, word [esp + 0x50]
cmp eax, 0x1f
mov dword [edi + 0x2c], eax
jg 0x4ec300
cmp edx, 3
lea eax, [edx + 1]
jg 0x4ec2c2
movzx edx, byte [eax + 0x74b05f]
mov eax, 8
mov ecx, edx
sar edx, 4
imul edx, dword [esp + 0x30]
and ecx, 0xf
sub eax, ecx
add eax, edx
mov edx, 1
test eax, eax
cmovle eax, edx
mov edx, dword [edi + 0x30]
test edx, edx
jne 0x4ec390
mov ebx, dword [edi + 0x24]
cmp dword [edi + 0x28], ebx
je 0x4ec2b3
mov edx, esi
sub edx, dword [esp + 0x48]
sar edx, 2
cmp edx, eax
jl 0x4eb7c4
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x4c]
sub edx, esi
sar edx, 2
cmp edx, ebx
jl 0x4eb7c4
lea edx, [eax*4]
mov ecx, esi
sub ecx, edx
lea edx, [ebx*4]
cmp eax, 2
mov dword [esp + 0x24], edx
jg 0x4ec1c0
cmp ebx, 3
jle 0x4ec1c0
test esi, 3
jne 0x4ec1e2
cmp eax, 1
mov eax, dword [ecx]
je 0x4ec3e3
mov edx, dword [ecx + 4]
mov dword [esp + 0x50], eax
test esi, 4
jne 0x4ec3a9
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], ecx
sar ebx, 1
mov dword [esp + 0x6c], eax
lea eax, [eax + ebx*8]
mov ebx, dword [esp + 0x50]
mov ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [eax], ebx
mov dword [eax + 4], edx
add eax, 8
cmp ecx, eax
jne 0x4ebd65
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
test al, 1
je 0x4ebd90
and eax, 0xfffffffe
mov ebx, dword [esp + 0x58]
mov edx, dword [ecx + eax*4]
mov dword [ebx + eax*4], edx
lea esi, [esi]
add ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
add esi, dword [esp + 0x24]
cmp ecx, ebp
jg 0x4ebdfa
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
mov esi, ecx
test eax, eax
setne al
lea esi, [esi]
lea edi, [edi]
sub ebp, esi
add ebx, 1
cmp dword [esp + 0xa4], ebx
jl 0x4ebdee
test al, al
je 0x4ebdee
test bl, 0xf
jne 0x4ebdee
mov byte [esp + 0x1c], al
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [esp + 0xa8]
movzx eax, byte [esp + 0x1c]
cmp esi, ebp
jle 0x4ebdc0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
test dword [esp + 0x2c], ebp
je 0x4ebe36
mov ecx, dword [edi + 0x98]
xor eax, eax
test ecx, ecx
je 0x4ebe2c
mov eax, dword [esp + 0x1c]
mov edx, ebp
sar edx, cl
sar eax, cl
imul eax, dword [edi + 0x9c]
add eax, edx
mov edx, dword [edi + 0xa0]
imul eax, dword [edx + eax*4], 0x224
add eax, dword [edi + 0xa8]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4eb97b
mov eax, dword [esp + 0x38]
cmp esi, eax
jbe 0x4eb97b
mov ecx, dword [ebx]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], edi
mov ebp, ecx
lea esi, [esi]
add eax, 4
mov edi, dword [eax - 4]
mov ecx, dword [ebx + 4]
imul edx, edi, 0x1e35a7bd
shr edx, cl
cmp esi, eax
mov dword [ebp + edx*4], edi
ja 0x4ebe60
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov eax, ebx
not eax
add eax, esi
shr eax, 2
lea eax, [ebx + eax*4 + 4]
mov dword [esp + 0x38], eax
jmp 0x4eb97b
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0050bf70
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x24], eax
jmp 0x4eb9a0
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x24]
add eax, 0x118
cmp eax, ebx
jle 0x4eb7c4
mov eax, ebx
mov ebx, dword [esp + 0x3c]
sub eax, 0x118
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx]
cmp eax, esi
mov dword [esp + 0x40], ecx
jae 0x4ebf39
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], ebp
mov edi, ecx
lea esi, [esi]
add eax, 4
mov ebp, dword [eax - 4]
mov ecx, dword [ebx + 4]
imul edx, ebp, 0x1e35a7bd
shr edx, cl
cmp eax, esi
mov dword [edi + edx*4], ebp
jb 0x4ebf00
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
mov eax, ebx
not eax
add eax, esi
shr eax, 2
lea eax, [ebx + eax*4 + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + ebx*4]
mov dword [esi], eax
jmp 0x4eb8ec
cmp dword [edi + 0x2c], 0x40
jg 0x4eba16
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4eb8ec
jmp 0x4ebb7f
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, ebx
mov ebx, dword [edi + 0x2c]
mov eax, ecx
mov ecx, ebx
mov dword [esp + 0x4c], ebx
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4ebf94
mov eax, edx
mov edx, dword [esp + 0x20]
movzx eax, al
mov ecx, dword [edx + 4]
lea edx, [ecx + eax*4]
movzx eax, byte [edx]
mov dword [esp + 0x58], edx
movzx edx, word [edx + 2]
lea ecx, [eax - 8]
mov word [esp + 0x50], dx
test ecx, ecx
mov dword [esp + 0x6c], ecx
jle 0x4ec018
add ebx, 8
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], ebx
and ebx, 0x3f
mov ecx, ebx
xor ebx, ebx
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
movzx ecx, byte [esp + 0x6c]
cmovne eax, edx
cmovne edx, ebx
mov dword [esp + 0x70], eax
mov eax, 1
mov dword [esp + 0x74], edx
shl eax, cl
movzx ecx, word [esp + 0x50]
sub eax, 1
and eax, dword [esp + 0x70]
shl ecx, 2
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x58]
add ecx, eax
movzx ebx, word [ecx + 2]
movzx eax, byte [ecx]
mov word [esp + 0x50], bx
add eax, dword [esp + 0x4c]
movzx ebx, word [esp + 0x50]
cmp eax, 0x1f
mov dword [esp + 0x4c], eax
mov dword [edi + 0x2c], eax
mov dword [esp + 0x6c], ebx
jg 0x4ec361
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, ebx
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4ec052
mov eax, edx
mov ecx, dword [esp + 0x20]
movzx eax, al
mov ecx, dword [ecx + 8]
lea ecx, [ecx + eax*4]
movzx eax, byte [ecx]
mov dword [esp + 0x58], ecx
movzx ecx, word [ecx + 2]
lea edx, [eax - 8]
mov word [esp + 0x50], cx
test edx, edx
mov dword [esp + 0x70], edx
jle 0x4ec0d6
add ebx, 8
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x4c], ebx
xor ebx, ebx
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
movzx ecx, byte [esp + 0x70]
cmovne eax, edx
cmovne edx, ebx
mov dword [esp + 0x78], eax
mov eax, 1
mov dword [esp + 0x7c], edx
shl eax, cl
movzx ecx, word [esp + 0x50]
sub eax, 1
and eax, dword [esp + 0x78]
shl ecx, 2
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x58]
add ecx, eax
movzx ebx, word [ecx + 2]
movzx eax, byte [ecx]
mov word [esp + 0x50], bx
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
mov dword [edi + 0x2c], eax
mov ecx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
mov ecx, dword [ebx + 0xc]
cmovne eax, edx
movzx eax, al
lea ebx, [ecx + eax*4]
movzx eax, byte [ebx]
movzx ecx, word [ebx + 2]
lea edx, [eax - 8]
mov word [esp + 0x58], cx
test edx, edx
mov dword [esp + 0x70], edx
jle 0x4ec173
add dword [esp + 0x4c], 8
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
and ecx, 0x3f
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4ec13f
mov eax, edx
xor edx, edx
movzx ecx, byte [esp + 0x70]
mov dword [esp + 0x40], eax
mov eax, 1
mov dword [esp + 0x44], edx
shl eax, cl
movzx ecx, word [esp + 0x58]
sub eax, 1
and eax, dword [esp + 0x40]
shl ecx, 2
lea eax, [ecx + eax*4]
add ebx, eax
movzx eax, byte [ebx]
movzx ebx, word [ebx + 2]
mov word [esp + 0x58], bx
add eax, dword [esp + 0x4c]
mov edx, dword [edi + 0x30]
test edx, edx
mov dword [edi + 0x2c], eax
jne 0x4ec390
mov ebx, dword [edi + 0x24]
cmp dword [edi + 0x28], ebx
jne 0x4ec196
cmp eax, 0x40
jg 0x4eba16
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
movzx ecx, word [esp + 0x50]
shl eax, 0x10
shl edx, 8
or edx, eax
or edx, ecx
mov ecx, dword [esp + 0x58]
shl ecx, 0x18
or ecx, edx
mov dword [esi], ecx
jmp 0x4eb8ec
xor edx, edx
cmp eax, dword [esp + 0x4c]
jge 0x4ec1f0
mov eax, dword [esp + 0x4c]
lea esi, [esi]
mov ebx, dword [ecx + edx*4]
mov dword [esi + edx*4], ebx
add edx, 1
cmp eax, edx
jg 0x4ec1d0
jmp 0x4ebd90
xor edx, edx
mov eax, dword [esp + 0x4c]
jmp 0x4ec1d0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
jmp 0x4ebd90
cmp ebp, dword [esp + 0x64]
jae 0x4eb7c4
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x78]
mov dword [edi], 5
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x44]
test ecx, ecx
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x48]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x4c]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x50]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x54]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x58]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x5c]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x60]
mov dword [edi + 0x70], eax
mov eax, 1
jle 0x4eb7cc
lea edx, [edi + 0x7c]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], edx
lea edx, [edi + 0x88]
mov dword [esp], edx
call fcn.0050c0a0
mov eax, dword [esp + 0x1c]
jmp 0x4eb7cc
mov eax, dword [esp + 0x1c]
sar edx, cl
sar eax, cl
imul eax, dword [edi + 0x9c]
add eax, edx
mov edx, dword [edi + 0xa0]
imul eax, dword [edx + eax*4], 0x224
jmp 0x4eb7f2
cmp dword [edi + 0x2c], 0x40
jle 0x4ebcc2
jmp 0x4eba16
mov eax, dword [esp + 0x50]
lea ecx, [edx - 2]
sar ecx, 1
and eax, 1
mov dword [esp + 4], ecx
add eax, 2
shl eax, cl
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0050bfb0
lea eax, [ebx + eax + 1]
cmp eax, 0x78
jle 0x4ebc84
sub eax, 0x78
jmp 0x4ebcab
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], edx
mov dword [esp], eax
call fcn.0050bf70
mov edx, dword [esp + 0x24]
jmp 0x4ebc78
mov ecx, dword [esp + 0x24]
and eax, 1
add eax, 2
sub ecx, 0x102
sar ecx, 1
shl eax, cl
mov dword [esp + 4], ecx
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0050bfb0
lea eax, [ebx + eax + 1]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x4ebbc9
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0050bf70
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
jmp 0x4ec035
mov ebx, dword [edi + 0x38]
mov ebp, esi
mov dword [edi + 0x30], 1
test ebx, ebx
je 0x4eb7c4
jmp 0x4ec210
lea eax, [esi + 4]
add ecx, 4
mov dword [esp + 0x58], eax
mov eax, dword [ecx - 4]
mov dword [esi], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], edx
mov edx, eax
mov eax, dword [esp + 0x4c]
sub eax, 1
mov dword [esp + 0x40], eax
jmp 0x4ebd46
mov eax, dword [edi + 0x24]
cmp dword [edi + 0x28], eax
jne 0x4eba22
jmp 0x4eba18
mov dword [esp + 0x50], eax
mov edx, eax
jmp 0x4ebd2e