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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [0x528390]
push esi
xor esi, esi
cmp dword [ebx + 0x1c4], esi
jne 0x4679b8
mov ebx, dword [ebx + 0x16c]
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x30], ebx
cmp ebp, edi
jne 0x467218
push 7
call fcn.004661e1
pop ecx
push ebp
call fcn.004663d1
pop ecx
test eax, eax
jne 0x46722e
push edi
call fcn.004663d1
pop ecx
test eax, eax
je 0x467236
push 0xc
call fcn.004661e1
pop ecx
cmp dword [edi], esi
jne 0x467242
push 2
call fcn.004661e1
pop ecx
mov eax, dword [0x528390]
cmp dword [eax + 0x1c4], esi
jne 0x4679b6
mov eax, dword [ebp]
mov esi, 0x80000000
mov edx, dword [edi]
mov ecx, eax
and ecx, esi
and edx, esi
mov dword [esp + 0x44], edx
xor edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, 0x7fffffff
and eax, ecx
mov dword [esp + 0x3c], edx
mov dword [ebp], eax
and dword [edi], ecx
mov esi, dword [edi]
mov eax, dword [ebp]
push ebx
push ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x5c], eax
call fcn.00465949
mov eax, dword [ebx]
pop ecx
pop ecx
mov ecx, dword [0x528390]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x1c], 0
je 0x4672ba
sub eax, esi
inc eax
cmp eax, dword [ecx + 0x18]
jle 0x4672ba
push 3
call fcn.004661e1
pop ecx
jmp 0x4679b6
and dword [esp + 0x1c], 0
xor eax, eax
mov edx, dword [esp + 0x54]
inc eax
cmp edx, esi
jne 0x467332
cmp edx, eax
jne 0x4672ef
mov eax, dword [edi + 4]
xor edx, edx
mov esi, dword [ebx + 4]
push ebx
mov ecx, dword [eax]
mov eax, dword [esi]
div ecx
mov dword [esp + 0x20], eax
mov dword [esi], edx
call fcn.00466288
mov esi, dword [esp + 0x38]
pop ecx
jmp 0x467332
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*4 - 4]
mov eax, dword [edi + 4]
shr ecx, 2
cmp ecx, dword [eax + edx*4 - 4]
jae 0x467332
push edi
push ebx
call fcn.00466203
pop ecx
pop ecx
test eax, eax
js 0x467332
mov ebp, dword [esp + 0x1c]
push ebx
push edi
push ebx
call fcn.0046b8a0
push edi
push ebx
inc ebp
call fcn.00466203
add esp, 0x14
test eax, eax
jns 0x467313
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x64]
push edi
push ebx
call fcn.00466203
pop ecx
pop ecx
test eax, eax
jns 0x467383
mov esi, dword [esp + 0x6c]
cmp ebp, esi
je 0x46735e
push ebp
push ebx
call fcn.00465949
mov eax, dword [ebp]
pop ecx
pop ecx
test eax, eax
je 0x46735e
or eax, dword [esp + 0x40]
mov dword [ebp], eax
cmp edi, esi
je 0x4673d8
push esi
call fcn.00466746
mov eax, dword [esi + 4]
pop ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x4673d8
mov ecx, dword [esp + 0x3c]
xor eax, eax
inc eax
or ecx, eax
mov dword [esi], ecx
jmp 0x4673d8
xor eax, eax
inc eax
cmp esi, eax
jne 0x4673e3
mov eax, dword [edi + 4]
push ebx
push dword [eax]
push ebx
call fcn.00466ec4
mov esi, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x54], eax
cmp edi, esi
je 0x4673b4
push esi
push ebx
call fcn.00465949
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
or dword [esi], ecx
cmp ebp, esi
je 0x4673d8
push ebp
call fcn.00466746
mov eax, dword [ebp + 4]
pop ecx
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
test ecx, ecx
je 0x4673d8
mov ecx, dword [esp + 0x40]
xor eax, eax
inc eax
or ecx, eax
mov dword [ebp], ecx
mov eax, dword [esp + 0x44]
or dword [edi], eax
jmp 0x4679b6
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x4673f2
push eax
call fcn.00466746
pop ecx
push edi
push edi
call fcn.0046800f
pop ecx
pop ecx
mov ecx, dword [0x528390]
mov dword [esp + 0x54], eax
mov edx, dword [ecx + 0x1c]
and dword [ecx + 0x1c], 0
mov ecx, dword [0x528390]
mov dword [esp + 0x5c], edx
cmp dword [ecx], 0
jne 0x46765d
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x467431
push ebx
push eax
push ebx
call fcn.00466d48
add esp, 0xc
mov eax, dword [edi + 4]
lea ecx, [esi - 1]
mov edx, dword [eax + esi*4 - 4]
mov eax, dword [eax + esi*4 - 8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
lea eax, [edx - 1]
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x46792e
mov ebp, eax
sub eax, esi
mov dword [esp + 0x4c], ebp
lea ecx, [eax + 1]
lea eax, [eax*4 + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
and dword [esp + 0x50], 0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov ecx, dword [eax + ebp*4 + 4]
mov eax, dword [eax + ebp*4]
cmp ecx, edx
jne 0x4674a0
or dword [esp + 0x14], 0xffffffff
add eax, edx
mov dword [esp + 0x1c], eax
cmp eax, edx
jae 0x4674bd
jmp 0x467514
push 0
push edx
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.004c13f0
mov ecx, eax
mov dword [esp + 0x14], eax
imul ecx, dword [esp + 0x28]
sub dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x50]
push 0
push dword [esp + 0x5c]
push 0
push esi
call fcn.004c0e50
mov ecx, eax
cmp edx, edi
jb 0x4674fc
jne 0x4674e9
mov eax, dword [esp + 0x48]
cmp ecx, dword [eax + ebp*4 - 4]
jbe 0x4674fc
add edi, dword [esp + 0x28]
dec esi
cmp edi, dword [esp + 0x28]
push 1
pop eax
cmovb ebx, eax
test ebx, ebx
je 0x4674c9
mov edi, dword [esp + 0x68]
test esi, esi
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
je 0x467609
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x46758c
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 4]
push 0
push ebp
push 0
push dword [eax + edx*4]
call fcn.004c0e50
add eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
adc edx, 0
mov ecx, edx
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 4]
mov edx, dword [edx + eax]
cmp edx, dword [esp + 0x38]
jae 0x467566
inc ecx
mov dword [esp + 0x24], ecx
mov edi, dword [ebx + 4]
sub edx, dword [esp + 0x38]
mov dword [edi + eax], edx
add eax, 4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x68]
inc edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], eax
cmp edx, esi
jl 0x467530
mov ebp, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4 + 4]
cmp eax, ecx
jae 0x467603
xor eax, eax
mov dword [edx + ebp*4 + 4], eax
mov dword [esp + 0x24], eax
test esi, esi
jle 0x4675fc
mov ecx, dword [esp + 0x20]
mov ebp, eax
shl ecx, 2
mov dword [esp + 0x1c], ecx
mov edx, dword [ebx + 4]
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 4]
and dword [esp + 0x50], 0
mov ecx, dword [edx + ecx]
add ecx, ebp
add ecx, dword [eax + ebx*4]
cmp ecx, dword [eax + ebx*4]
push 1
cmova ebp, dword [esp + 0x54]
pop eax
cmovb ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [edx + eax], ecx
mov eax, ebx
mov ecx, dword [esp + 0x1c]
inc eax
mov ebx, dword [esp + 0x30]
add ecx, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
cmp eax, esi
jl 0x4675b2
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec ecx
jmp 0x46760d
sub eax, ecx
mov dword [edx + ebp*4 + 4], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
cmp ebp, eax
jne 0x467629
test ecx, ecx
jne 0x467629
mov edx, dword [esp + 0x10]
dec edx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], eax
jmp 0x46763f
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x46763b
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x10]
sub dword [esp + 0x2c], 4
lea eax, [esi - 1]
dec ebp
dec dword [esp + 0x20]
mov dword [esp + 0x18], ebp
cmp ebp, eax
jge 0x467474
jmp 0x46792a
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x46766f
push ebx
push eax
push ebx
call fcn.00466d48
add esp, 0xc
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + esi*4 - 4]
mov eax, dword [eax + esi*4 - 8]
mov dword [esp + 0x24], ecx
lea ecx, [edx - 1]
mov dword [esp + 0x58], eax
lea eax, [esi - 1]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jl 0x46792e
mov ebp, dword [0x528390]
mov eax, ecx
sub eax, esi
mov dword [esp + 0x50], ecx
lea edx, [eax + 1]
lea eax, [eax*4 + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x48], edx
mov eax, dword [edx + ecx*4 + 4]
cmp eax, dword [esp + 0x24]
jne 0x4676da
mov eax, dword [ebp]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [edx + ecx*4]
add eax, dword [esp + 0x24]
jmp 0x46770b
mul dword [ebp]
mov edi, dword [ebx + 4]
push 0
add eax, dword [edi + ecx*4]
mov edi, dword [esp + 0x28]
push edi
adc edx, 0
mov dword [esp + 0x28], eax
push edx
push eax
call fcn.004c13f0
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
imul ecx, edi
mov edi, dword [esp + 0x68]
sub eax, ecx
mov dword [esp + 0x20], eax
cmp eax, dword [ebp]
jae 0x467786
mov edi, dword [esp + 0x1c]
mov esi, eax
mov ebx, dword [esp + 0x14]
push 0
push dword [esp + 0x5c]
push 0
push ebx
call fcn.004c0e50
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
cmp dword [ebp], ecx
jne 0x467742
mov ecx, dword [ebp + 0xc]
call fcn.004c1a10
jmp 0x46774e
push 0
push dword [ebp]
push edx
push eax
call fcn.004c13f0
mov ecx, eax
cmp ecx, esi
jb 0x467776
jne 0x46776c
mov eax, dword [ebp]
imul eax, ecx
mov ecx, dword [esp + 0x4c]
sub ecx, eax
mov eax, dword [esp + 0x48]
cmp ecx, dword [eax + edi*4 - 4]
jbe 0x467776
add esi, dword [esp + 0x24]
dec ebx
cmp esi, dword [ebp]
jb 0x46771e
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4678d5
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], ecx
test esi, esi
jle 0x467856
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
xor edi, edi
push edi
push dword [esp + 0x18]
push edi
push dword [eax + ecx*4]
call fcn.004c0e50
add eax, dword [esp + 0x20]
mov ecx, dword [ebp]
adc edx, edi
mov dword [esp + 0x2c], eax
cmp ecx, dword [ebp + 0x10]
jne 0x4677e6
mov ecx, dword [ebp + 0xc]
call fcn.004c1a10
mov ebp, dword [ebp]
mov edx, eax
mov dword [esp + 0x20], edx
jmp 0x4677f7
push edi
mov ebp, ecx
push ebp
push edx
push eax
call fcn.004c13f0
mov edx, eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x2c]
mov eax, ebp
mov edi, dword [ebx + 4]
imul eax, edx
sub ecx, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edi]
mov edi, dword [esp + 0x68]
cmp eax, ecx
jae 0x467829
sub ebp, ecx
inc edx
mov ecx, dword [ebx + 4]
add ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [eax + ecx], ebp
jmp 0x467837
mov ebp, dword [ebx + 4]
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + ebp], eax
mov eax, ecx
mov ecx, dword [esp + 0x48]
add eax, 4
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ecx
cmp ecx, esi
jge 0x467856
mov ebp, dword [0x528390]
jmp 0x4677ae
mov ebp, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + ecx*4 + 4]
cmp eax, edx
jae 0x4678c3
xor eax, eax
mov dword [ebp + ecx*4 + 4], eax
mov dword [esp + 0x2c], eax
test esi, esi
jle 0x4678b6
mov ebp, dword [esp + 0x28]
mov ecx, eax
shl ebp, 2
mov eax, dword [edi + 4]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebx + 4]
add edx, dword [esp + 0x2c]
and dword [esp + 0x2c], 0
add edx, dword [eax + ebp]
mov eax, dword [0x528390]
cmp edx, dword [eax]
jb 0x4678a4
sub edx, dword [eax]
mov dword [esp + 0x2c], 1
mov eax, dword [ebx + 4]
inc ecx
mov dword [eax + ebp], edx
add ebp, 4
cmp ecx, esi
jl 0x46787c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [0x528390]
dec edx
jmp 0x4678d9
sub eax, edx
mov edx, dword [esp + 0x14]
mov dword [ebp + ecx*4 + 4], eax
mov ebp, dword [0x528390]
jmp 0x4678d9
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jne 0x4678f5
test edx, edx
jne 0x4678f5
mov edx, dword [esp + 0x10]
dec edx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], eax
jmp 0x467911
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x46790d
mov ebp, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [eax + ebp*4], edx
mov ebp, dword [0x528390]
mov edx, dword [esp + 0x10]
sub dword [esp + 0x38], 4
lea eax, [esi - 1]
dec ecx
dec dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jge 0x4676b8
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x46793f
sub edx, esi
inc edx
or edx, dword [esp + 0x3c]
mov dword [eax], edx
push edi
mov dword [ebx], esi
call fcn.00466288
mov esi, dword [esp + 0x70]
push esi
call fcn.00466288
pop ecx
pop ecx
cmp ebp, esi
je 0x46798e
push ebx
call fcn.00466288
mov esi, dword [esp + 0x58]
xor eax, eax
inc eax
pop ecx
push ebp
cmp esi, eax
je 0x467976
push esi
push ebx
call fcn.00466ec4
add esp, 0xc
jmp 0x46797e
push ebx
call fcn.00465949
pop ecx
pop ecx
mov eax, dword [ebp]
test eax, eax
je 0x467992
or eax, dword [esp + 0x40]
mov dword [ebp], eax
jmp 0x467992
mov esi, dword [esp + 0x54]
xor eax, eax
inc eax
cmp esi, eax
je 0x4679a4
push edi
push esi
push edi
call fcn.00466ec4
add esp, 0xc
mov eax, dword [esp + 0x44]
or dword [edi], eax
mov eax, dword [0x528390]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x1c], ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x50
ret