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

Disassembly:
sub esp, 0x94
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push 0x690dc8
push eax
lea ecx, [esp + 0x70]
call fcn.005c6d67
lea ecx, [esp + 0x68]
call fcn.005c6dae
mov eax, dword [esi + 0xde8]
xor ebx, ebx
cmp eax, ebx
jg 0x4e86cf
cmp dword [esi + 0x9dc], ebx
jne 0x4e86cf
mov ecx, esi
call fcn.004e3930
test eax, eax
jne 0x4e86cf
cmp dword [esi + 0x748], ebx
jg 0x4e7a54
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + 4]
push esi
call fcn.00401c70
mov al, byte [esi + 0x754]
test al, al
push edi
je 0x4e7ab9
mov eax, dword [esi + 0x758]
cmp eax, ebx
je 0x4e86ce
mov cl, byte [eax + 0x18]
test cl, cl
je 0x4e86ce
cmp dword [eax + 0x14], 1
jne 0x4e86ce
call dword [0x68a5c8]
mov edx, dword [esi + 0x758]
mov edi, dword [edx + 0x10]
and eax, 0x7fffffff
sub eax, edi
cmp eax, 0x3a98
jl 0x4e86ce
push ebx
push esi
call fcn.0041d1f0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x94
ret 4
cmp dword [esi + 0x8b0], ebx
je 0x4e7ae3
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x8b0], ebx
call dword [eax + 0x5c]
xor ecx, ecx
cmp eax, ebx
sete cl
push 1
push ecx
mov ecx, dword [esi + 0x814]
call fcn.00420e50
cmp dword [esi + 0x8c0], ebx
je 0x4e7b71
mov ecx, dword [esi + 0x8c8]
mov edx, dword [esi]
xor eax, eax
mov al, byte [esi + 0x8cc]
mov dword [esi + 0x8c0], ebx
push eax
mov eax, dword [esi + 0x8c4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x6c]
cmp eax, 2
jne 0x4e7b2a
mov ecx, dword [esi + 0x8c4]
push ecx
lea ecx, [esi + 0x880]
call fcn.00498dc0
mov eax, dword [esi + 0x8c4]
cmp eax, ebx
je 0x4e7b43
push eax
call fcn.006058d0
add esp, 4
mov dword [esi + 0x8c4], ebx
mov eax, dword [esi + 0x8c8]
cmp eax, ebx
je 0x4e7b5c
push eax
call fcn.006058d0
add esp, 4
mov dword [esi + 0x8c8], ebx
mov ecx, dword [esi + 0x814]
push 2
push ebx
mov byte [esi + 0x8cc], 0
call fcn.00420e50
cmp dword [esi + 0x8bc], ebx
je 0x4e7ba2
mov eax, dword [esi + 0x760]
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esi + 0x8bc], ebx
call dword [edx + 0x60]
xor ecx, ecx
test al, al
sete cl
push 3
push ecx
mov ecx, dword [esi + 0x814]
call fcn.00420e50
lea ecx, [esi + 0x28]
call fcn.0046b8a0
test eax, eax
jne 0x4e86ce
mov edx, dword [esi + 0x814]
cmp dword [edx + 0x14], ebx
jne 0x4e86ce
cmp dword [esi + 0x748], ebx
jg 0x4e86ce
mov al, byte [esi + 0x74c]
test al, al
jne 0x4e86ce
cmp dword [esi + 0x7d0], ebx
je 0x4e86ce
cmp dword [esi + 0x7b8], ebx
jne 0x4e86ce
mov edi, dword [0x68a5c8]
call edi
mov ecx, dword [esi + 0x9dc]
and eax, 0x7fffffff
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ecx, ebx
sete al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
cmp dword [esi + 0x5f8], ebx
je 0x4e7c5a
lea ecx, [esp + 0x14]
push ecx
call fcn.005244b0
add esp, 4
test eax, eax
je 0x4e7c5a
mov ecx, dword [esi + 0x878]
cmp ecx, ebx
je 0x4e7c45
call fcn.00498020
test eax, eax
jne 0x4e7c5a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esi + 0x5f0]
call fcn.0046f9e0
call edi
mov edi, eax
mov eax, dword [esi + 0x910]
and edi, 0x7fffffff
cmp eax, ebx
je 0x4e7c92
cmp dword [esi + 0x90c], ebx
je 0x4e7c92
call dword [0x68a548]
sub edi, dword [esi + 0x910]
cmp edi, eax
jle 0x4e7c92
mov dword [esi + 0x910], ebx
mov dword [esi + 0x90c], ebx
push ebp
mov dword [esp + 0x20], esi
call fcn.004cbd60
mov ecx, dword [esi + 0xc30]
call fcn.00529900
mov ecx, dword [esi + 0xc34]
mov dword [esp + 0x10], eax
call fcn.00531cc0
mov ecx, dword [esi + 0xc2c]
call fcn.00535490
lea ecx, [esi + 0xc44]
push ebx
push ecx
call fcn.0052f100
mov eax, dword [esi + 0xc3c]
lea edi, [esi + 0xc3c]
add esp, 8
cmp eax, ebx
je 0x4e7e24
mov edx, dword [esi + 0x24]
push 0x690dbc
push edx
lea ecx, [esp + 0x78]
call fcn.005c6d67
mov eax, dword [esi + 0x20]
push 0x80
push eax
lea ecx, [esp + 0x68]
call fcn.004d80b0
lea ecx, [esp + 0x60]
mov dword [esi + 0xc40], ecx
mov ecx, dword [edi]
cmp ecx, ebx
je 0x4e7d31
lea esp, [esp]
call fcn.0053f210
mov edi, dword [edi]
mov ecx, dword [edi + 0x24]
add edi, 0x24
cmp ecx, ebx
jne 0x4e7d20
mov eax, dword [esi + 0xc3c]
cmp eax, ebx
lea edi, [esi + 0xc3c]
je 0x4e7e0c
mov eax, dword [edi]
cmp dword [eax + 0xd0], ebx
je 0x4e7d57
lea edi, [eax + 0x24]
jmp 0x4e7e04
mov edx, dword [eax + 0x1c]
push edx
push esi
lea ecx, [esp + 0x48]
call fcn.0049a500
mov ecx, dword [edi]
call fcn.0053dd00
mov ecx, dword [edi]
call fcn.0053d270
mov ecx, dword [edi]
call fcn.0053d190
mov ecx, dword [edi]
call fcn.0053d7b0
mov ecx, dword [edi]
call fcn.0053f080
mov ecx, dword [edi]
cmp dword [ecx + 0xd4], ebx
je 0x4e7fd1
mov ebp, dword [ecx + 0xb0]
cmp ebp, ebx
je 0x4e7fb0
mov ecx, dword [ebp + 0xec]
cmp ecx, ebx
je 0x4e7db3
call fcn.005435f0
mov ebp, dword [ebp + 0x14]
cmp ebp, ebx
jne 0x4e7da4
mov eax, dword [edi]
mov ebp, dword [eax + 0xb0]
cmp ebp, ebx
je 0x4e7de5
mov al, byte [ebp + 0x291]
test al, al
je 0x4e7dde
mov ecx, ebp
call fcn.00546970
mov byte [ebp + 0x291], 0
mov ebp, dword [ebp + 0x14]
cmp ebp, ebx
jne 0x4e7dc6
mov ecx, dword [edi]
call fcn.0053d2b0
mov ecx, dword [esp + 0x10]
mov edi, dword [edi]
or ecx, eax
mov dword [esp + 0x10], ecx
add edi, 0x24
lea ecx, [esp + 0x40]
call fcn.00498ee0
cmp dword [edi], ebx
jne 0x4e7d45
lea ecx, [esp + 0x60]
mov dword [esi + 0xc40], ebx
call fcn.005549e0
lea ecx, [esp + 0x70]
call fcn.005c6dae
cmp dword [esp + 0x10], ebx
mov ebp, dword [esp + 0xa8]
je 0x4e7e5b
cmp ebp, ebx
je 0x4e7e5b
fld qword [esi + 0x7c8]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fistp dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x10]
jge 0x4e7e5b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x98]
mov ecx, dword [esi + 0xc4c]
cmp ecx, ebx
je 0x4e7e6a
call fcn.0044b890
mov ecx, dword [esi + 0xc48]
cmp ecx, ebx
je 0x4e7e7a
push esi
call fcn.0043e1c0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 8], ebx
je 0x4e7f1f
cmp dword [esi + 0x9dc], ebx
jne 0x4e7f1f
mov ecx, dword [eax + 8]
call fcn.004a5410
lea eax, [esi + 0x294]
push eax
lea ecx, [esp + 0x38]
call fcn.00489b40
lea ecx, [esp + 0x34]
call fcn.00489b90
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4e7f16
jmp 0x4e7ec0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xa4]
test eax, eax
je 0x4e7f03
mov edi, ecx
call fcn.004bf940
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x4e7f03
mov ecx, ebx
call fcn.004cbcd0
test eax, eax
je 0x4e7f03
mov al, byte [ebx + 0x137]
test al, al
jne 0x4e7f03
mov edx, dword [edi + 0x2c]
mov eax, dword [edx + 0x5f0]
test ah, 8
je 0x4e8021
lea ecx, [esp + 0x34]
call fcn.00489b90
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4e7ec0
xor ebx, ebx
lea ecx, [esp + 0x34]
call fcn.00489b60
cmp ebp, ebx
je 0x4e8179
fld qword [esi + 0x7c8]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fistp dword [esp + 0x10]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x10]
jge 0x4e8179
mov ecx, dword [esi + 0x5a0]
call fcn.00448460
mov ecx, esi
call fcn.004dfaf0
cmp dword [esi + 0x5f8], ebx
je 0x4e7f9a
lea ecx, [esp + 0x18]
push ecx
call fcn.005244b0
add esp, 4
test eax, eax
je 0x4e7f9a
mov ecx, dword [esi + 0x878]
cmp ecx, ebx
je 0x4e7f85
call fcn.00498020
test eax, eax
jne 0x4e7f9a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esi + 0x5f0]
call fcn.0046fa40
lea ecx, [esp + 0x20]
call fcn.004d13b0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x94
ret 4
cmp dword [ecx + 0x1c], ebx
jne 0x4e7dba
cmp ecx, ebx
mov eax, dword [ecx + 0x24]
mov dword [edi], eax
je 0x4e7dfb
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x4e7dfb
mov ecx, dword [ecx + 0x78]
call fcn.0052c960
test eax, eax
jne 0x4e7dba
mov ebp, dword [edi]
mov eax, dword [ebp + 0x24]
mov dword [edi], eax
cmp dword [ebp + 0x1c], ebx
je 0x4e8013
mov ecx, ebp
call fcn.0053da70
test eax, eax
mov ecx, ebp
je 0x4e800d
call fcn.0053d3a0
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
jmp 0x4e7dfb
push ebx
call fcn.0053d310
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
jmp 0x4e7dfb
mov edi, dword [edi + 0x40]
mov ecx, ebx
call fcn.004a28c0
sub eax, edi
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004ce980
cmp eax, 5
jle 0x4e8145
fld qword [esi + 0x7c8]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fistp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x694]
sub eax, edx
mov dword [esi + ecx*4 + 0x680], eax
mov eax, dword [esi + 0x694]
inc eax
cdq
mov ecx, 5
idiv ecx
xor eax, eax
xor ebp, ebp
mov edi, ecx
mov dword [esi + 0x694], edx
lea edx, [esi + 0x680]
jmp 0x4e8090
mov ecx, dword [edx]
cmp ebp, ecx
jg 0x4e8098
mov ebp, ecx
add eax, ecx
add edx, 4
dec edi
jne 0x4e8090
sub eax, ebp
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
cmp edi, 0xa
jle 0x4e8121
cmp edi, 0x3e8
jge 0x4e8121
mov ebp, dword [esi + 0x590]
fld qword [ebp + 0x208]
call fcn.00519000
fld qword [ebp + 0x208]
add edi, eax
fmul qword [0x68a6e0]
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
fstp qword [esp + 0x24]
sar edx, 2
and edx, 3
mov ecx, dword [edx*4 + 0x68feb8]
shl eax, cl
lea ecx, [eax + eax*4]
shl ecx, 1
mov eax, 0x4a4dc96f
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
fld qword [esp + 0x24]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add eax, edi
cdq
idiv ecx
add dword [esp + 0x2c], eax
jmp 0x4e8145
test ebp, ebp
jle 0x4e8145
xor ecx, ecx
mov dword [esi + 0x680], ecx
mov dword [esi + 0x684], ecx
mov dword [esi + 0x688], ecx
mov dword [esi + 0x68c], ecx
mov dword [esi + 0x690], ecx
mov eax, dword [esp + 0x2c]
test eax, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x34]
jg 0x4e8174
call fcn.00489b60
lea ecx, [esp + 0x20]
call fcn.004d13b0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x94
ret 4
call fcn.00489b60
lea ecx, [esp + 0x20]
call fcn.004d13b0
fild dword [esp + 0x30]
mov ecx, dword [esi + 0x590]
mov ebx, dword [esp + 0x2c]
fadd qword [ecx + 0x208]
xor ebp, ebp
cmp ebx, ebp
fstp qword [esi + 0x7c8]
je 0x4e84db
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebp
mov edi, edi
lea eax, [esi + 0x28c]
push eax
lea ecx, [esp + 0x38]
call fcn.00489b40
lea ecx, [esp + 0x34]
call fcn.00489b90
mov edi, eax
test edi, edi
je 0x4e825e
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4e8240
mov ecx, edi
call fcn.004bf940
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4e8240
cmp edi, dword [esp + 0x14]
je 0x4e8240
mov ecx, edi
call fcn.004bf940
mov ecx, dword [eax + 0x30]
call fcn.004cbcd0
test eax, eax
je 0x4e8240
mov edx, dword [edi + 0x2c]
mov eax, dword [edx + 0x5f0]
test ah, 8
jne 0x4e8240
mov eax, dword [esi + 0x9e0]
test eax, eax
jne 0x4e8240
mov ebx, dword [edi + 0x40]
mov ecx, edi
call fcn.004bf940
mov ecx, dword [eax + 0x30]
call fcn.004a28c0
cmp eax, ebx
jge 0x4e8240
mov ecx, edi
call fcn.004bf940
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4e824b
push 0
mov ecx, edi
push 1
call fcn.004c7390
lea ecx, [esp + 0x34]
call fcn.00489b90
mov edi, eax
test edi, edi
jne 0x4e81d3
lea ecx, [esp + 0x34]
call fcn.00489b60
mov al, byte [esi + 0xc5d]
test al, al
je 0x4e82b6
lea eax, [esi + 0x28c]
push eax
lea ecx, [esp + 0x58]
mov byte [esi + 0xc5d], 0
call fcn.00489b40
lea ecx, [esp + 0x54]
call fcn.00489b90
test eax, eax
je 0x4e82ad
mov ecx, dword [eax + 0xb4]
call fcn.004c5320
lea ecx, [esp + 0x54]
call fcn.00489b90
test eax, eax
jne 0x4e8295
lea ecx, [esp + 0x54]
call fcn.00489b60
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e82c2
call fcn.00578340
mov ecx, dword [esi + 0x5a0]
call fcn.004488e0
mov ecx, esi
call fcn.004dfaf0
mov eax, dword [esi + 0x564]
mov ecx, dword [esi + 0x560]
push eax
call fcn.0048be30
mov eax, dword [esi + 0x5f8]
test eax, eax
je 0x4e8333
mov eax, dword [esi + 0x810]
test eax, eax
jne 0x4e8333
lea ecx, [esp + 0x24]
push ecx
call fcn.005244b0
add esp, 4
test eax, eax
je 0x4e8333
mov ecx, dword [esi + 0x878]
test ecx, ecx
je 0x4e831e
call fcn.00498020
test eax, eax
jne 0x4e8333
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esi + 0x5f0]
call fcn.0046faa0
push 0
mov ecx, esi
call fcn.00497f60
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e8348
call fcn.00578c30
lea eax, [esi + 0x29c]
push eax
lea ecx, [esp + 0x44]
call fcn.00489b40
lea ecx, [esp + 0x40]
call fcn.00489b90
mov ebp, eax
test ebp, ebp
je 0x4e8475
jmp 0x4e8370
mov ecx, dword [ebp + 0x2c]
call fcn.004b76d0
test eax, eax
je 0x4e8462
mov ecx, dword [ebp + 0x2c]
call fcn.004b7700
test al, al
jne 0x4e8462
mov ecx, dword [ebp + 0x2c]
call fcn.004b76d0
push ebp
lea ecx, [esi + 0x29c]
mov ebx, eax
call fcn.0048b3f0
mov eax, dword [esi + 0x87c]
test eax, eax
jne 0x4e83cb
mov eax, dword [esi + 0xc7c]
test eax, eax
je 0x4e83d9
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4e83d9
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x4e83d9
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x4e83d9
mov edi, eax
jmp 0x4e83e2
mov ecx, dword [esi + 0x590]
mov edi, dword [ecx + 0x54]
lea edx, [esp + 0x60]
push edx
mov ecx, ebx
call fcn.00410f10
mov eax, dword [eax]
push 0
push eax
push edi
mov ecx, esi
call fcn.004db500
lea ecx, [esp + 0x60]
mov edi, eax
call fcn.00405670
test edi, edi
jne 0x4e840d
mov edi, dword [ebp + 0x2c]
mov ebx, dword [ebx + 0x2c]
push 0x409110
push 1
push 4
lea eax, [esp + 0x2c]
push eax
call fcn.00401020
push edi
lea ecx, [esp + 0x24]
call fcn.00488aa0
mov ecx, dword [ebp + 0x2c]
call fcn.004b76f0
test ebx, ebx
je 0x4e844f
push 0
push 1
lea ecx, [esp + 0x28]
push ecx
push 0x69086c
push ebx
mov ecx, esi
call fcn.004e0d30
push 0x401fd0
push 1
push 4
lea edx, [esp + 0x2c]
push edx
call fcn.00401b60
lea ecx, [esp + 0x40]
call fcn.00489b90
mov ebp, eax
test ebp, ebp
jne 0x4e8370
mov eax, dword [esi + 0x5f8]
test eax, eax
je 0x4e84c2
mov eax, dword [esi + 0x810]
test eax, eax
jne 0x4e84c2
lea eax, [esp + 0x24]
push eax
call fcn.005244b0
add esp, 4
test eax, eax
je 0x4e84c2
mov ecx, dword [esi + 0x878]
test ecx, ecx
je 0x4e84ad
call fcn.00498020
test eax, eax
jne 0x4e84c2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esi + 0x5f0]
call fcn.0046fb00
lea ecx, [esp + 0x40]
call fcn.00489b60
dec dword [esp + 0x10]
jne 0x4e81b0
mov ebx, dword [esp + 0x2c]
xor ebp, ebp
mov ecx, dword [esi + 0xc38]
push ebp
push 2
dec ebx
call fcn.0053c800
mov edi, dword [esi + 0xc3c]
cmp edi, ebp
je 0x4e850a
mov ecx, dword [edi + 0xd8]
cmp ecx, ebp
je 0x4e8503
call fcn.0043a760
mov edi, dword [edi + 0x24]
cmp edi, ebp
jne 0x4e84f4
push ebp
push esi
lea ecx, [esi + 0x838]
call fcn.004cf1c0
push ebp
mov ecx, esi
call fcn.004e5800
lea ecx, [esi + 0x650]
call fcn.0049ed30
mov ecx, esi
call fcn.004d1330
cmp dword [esi + 0x79c], ebp
je 0x4e854d
lea eax, [esi + 0x7dc]
push eax
mov ecx, esi
call fcn.004d70c0
mov dword [esi + 0x79c], ebp
cmp dword [esi + 0x544], ebp
jne 0x4e858a
cmp dword [esi + 0x6c8], ebp
jne 0x4e858a
mov eax, dword [esi + 0x7d8]
cmp eax, ebp
jl 0x4e858a
push ebp
push eax
lea edi, [esi + 0x7dc]
push edi
mov ecx, esi
call fcn.004e6c50
mov ecx, dword [esi + 0x7e0]
mov edx, dword [edi]
push ecx
push edx
push 2
mov ecx, esi
call fcn.004d9b40
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
cmp dword [esi + 0x668], ebp
je 0x4e8668
call dword [0x68a5c8]
mov edx, dword [esi + 0x590]
mov ecx, eax
mov eax, dword [esp + 0x30]
and ecx, 0x7fffffff
sub ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fcomp qword [edx + 0x208]
fnstsw ax
test ah, 0x41
je 0x4e85fa
cmp ebx, 1
jg 0x4e85fa
fld qword [edx + 0x208]
fmul qword [0x68be18]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fistp dword [esp + 0x14]
cmp ecx, dword [esp + 0x14]
jge 0x4e8600
inc dword [esi + 0x69c]
jmp 0x4e8600
inc dword [esi + 0x698]
mov edx, dword [esi + 0x6a0]
inc edx
mov eax, edx
cmp eax, 4
mov dword [esi + 0x6a0], edx
jle 0x4e8662
cmp dword [esi + 0x66c], 0xa
jle 0x4e8662
mov ecx, dword [esi + 0x664]
mov edx, 2
cmp ecx, edx
jne 0x4e8641
mov ecx, dword [esi + 0x698]
lea ecx, [ecx + ecx*2]
cmp ecx, eax
jle 0x4e8662
mov dword [esi + 0x664], ebp
jmp 0x4e8654
mov ecx, dword [esi + 0x69c]
lea ecx, [ecx + ecx*2]
cmp ecx, eax
jle 0x4e8662
mov dword [esi + 0x664], edx
mov ecx, esi
push edx
mov dword [esi + 0x66c], ebp
call fcn.004e11b0
inc dword [esi + 0x66c]
mov ecx, dword [esi + 0x20]
add ecx, 0x354
call fcn.00604270
mov edx, dword [esi + 0x20]
mov ecx, dword [edx + 0x334]
call fcn.006026d0
lea ecx, [esi + 0x28]
call fcn.00466e90
cmp dword [esi + 0x5f8], ebp
je 0x4e86cd
lea eax, [esp + 0x18]
push eax
call fcn.005244b0
add esp, 4
test eax, eax
je 0x4e86cd
mov ecx, dword [esi + 0x878]
cmp ecx, ebp
je 0x4e86b8
call fcn.00498020
test eax, eax
jne 0x4e86cd
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esi + 0x5f0]
call fcn.0046fa40
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x94
ret 4