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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [0x5273d0]
push esi
xor esi, esi
cmp dword [ebx + 0x1c4], esi
jne 0x4673dd
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 0x466c3d
push 7
call fcn.00465c06
pop ecx
push ebp
call fcn.00465df6
pop ecx
test eax, eax
jne 0x466c53
push edi
call fcn.00465df6
pop ecx
test eax, eax
je 0x466c5b
push 0xc
call fcn.00465c06
pop ecx
cmp dword [edi], esi
jne 0x466c67
push 2
call fcn.00465c06
pop ecx
mov eax, dword [0x5273d0]
cmp dword [eax + 0x1c4], esi
jne 0x4673db
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.0046536e
mov eax, dword [ebx]
pop ecx
pop ecx
mov ecx, dword [0x5273d0]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x1c], 0
je 0x466cdf
sub eax, esi
inc eax
cmp eax, dword [ecx + 0x18]
jle 0x466cdf
push 3
call fcn.00465c06
pop ecx
jmp 0x4673db
and dword [esp + 0x1c], 0
xor eax, eax
mov edx, dword [esp + 0x54]
inc eax
cmp edx, esi
jne 0x466d57
cmp edx, eax
jne 0x466d14
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.00465cad
mov esi, dword [esp + 0x38]
pop ecx
jmp 0x466d57
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 0x466d57
push edi
push ebx
call fcn.00465c28
pop ecx
pop ecx
test eax, eax
js 0x466d57
mov ebp, dword [esp + 0x1c]
push ebx
push edi
push ebx
call fcn.0046b2c5
push edi
push ebx
inc ebp
call fcn.00465c28
add esp, 0x14
test eax, eax
jns 0x466d38
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x64]
push edi
push ebx
call fcn.00465c28
pop ecx
pop ecx
test eax, eax
jns 0x466da8
mov esi, dword [esp + 0x6c]
cmp ebp, esi
je 0x466d83
push ebp
push ebx
call fcn.0046536e
mov eax, dword [ebp]
pop ecx
pop ecx
test eax, eax
je 0x466d83
or eax, dword [esp + 0x40]
mov dword [ebp], eax
cmp edi, esi
je 0x466dfd
push esi
call fcn.0046616b
mov eax, dword [esi + 4]
pop ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x466dfd
mov ecx, dword [esp + 0x3c]
xor eax, eax
inc eax
or ecx, eax
mov dword [esi], ecx
jmp 0x466dfd
xor eax, eax
inc eax
cmp esi, eax
jne 0x466e08
mov eax, dword [edi + 4]
push ebx
push dword [eax]
push ebx
call fcn.004668e9
mov esi, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x54], eax
cmp edi, esi
je 0x466dd9
push esi
push ebx
call fcn.0046536e
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
or dword [esi], ecx
cmp ebp, esi
je 0x466dfd
push ebp
call fcn.0046616b
mov eax, dword [ebp + 4]
pop ecx
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
test ecx, ecx
je 0x466dfd
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 0x4673db
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x466e17
push eax
call fcn.0046616b
pop ecx
push edi
push edi
call fcn.00467a34
pop ecx
pop ecx
mov ecx, dword [0x5273d0]
mov dword [esp + 0x54], eax
mov edx, dword [ecx + 0x1c]
and dword [ecx + 0x1c], 0
mov ecx, dword [0x5273d0]
mov dword [esp + 0x5c], edx
cmp dword [ecx], 0
jne 0x467082
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x466e56
push ebx
push eax
push ebx
call fcn.0046676d
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 0x467353
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 0x466ec5
or dword [esp + 0x14], 0xffffffff
add eax, edx
mov dword [esp + 0x1c], eax
cmp eax, edx
jae 0x466ee2
jmp 0x466f39
push 0
push edx
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.004c0e40
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.004c08a0
mov ecx, eax
cmp edx, edi
jb 0x466f21
jne 0x466f0e
mov eax, dword [esp + 0x48]
cmp ecx, dword [eax + ebp*4 - 4]
jbe 0x466f21
add edi, dword [esp + 0x28]
dec esi
cmp edi, dword [esp + 0x28]
push 1
pop eax
cmovb ebx, eax
test ebx, ebx
je 0x466eee
mov edi, dword [esp + 0x68]
test esi, esi
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
je 0x46702e
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x466fb1
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.004c08a0
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 0x466f8b
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 0x466f55
mov ebp, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4 + 4]
cmp eax, ecx
jae 0x467028
xor eax, eax
mov dword [edx + ebp*4 + 4], eax
mov dword [esp + 0x24], eax
test esi, esi
jle 0x467021
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 0x466fd7
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec ecx
jmp 0x467032
sub eax, ecx
mov dword [edx + ebp*4 + 4], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
cmp ebp, eax
jne 0x46704e
test ecx, ecx
jne 0x46704e
mov edx, dword [esp + 0x10]
dec edx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], eax
jmp 0x467064
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x467060
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 0x466e99
jmp 0x46734f
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x467094
push ebx
push eax
push ebx
call fcn.0046676d
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 0x467353
mov ebp, dword [0x5273d0]
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 0x4670ff
mov eax, dword [ebp]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [edx + ecx*4]
add eax, dword [esp + 0x24]
jmp 0x467130
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.004c0e40
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 0x4671ab
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.004c08a0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
cmp dword [ebp], ecx
jne 0x467167
mov ecx, dword [ebp + 0xc]
call fcn.004c1460
jmp 0x467173
push 0
push dword [ebp]
push edx
push eax
call fcn.004c0e40
mov ecx, eax
cmp ecx, esi
jb 0x46719b
jne 0x467191
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 0x46719b
add esi, dword [esp + 0x24]
dec ebx
cmp esi, dword [ebp]
jb 0x467143
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 0x4672fa
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], ecx
test esi, esi
jle 0x46727b
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.004c08a0
add eax, dword [esp + 0x20]
mov ecx, dword [ebp]
adc edx, edi
mov dword [esp + 0x2c], eax
cmp ecx, dword [ebp + 0x10]
jne 0x46720b
mov ecx, dword [ebp + 0xc]
call fcn.004c1460
mov ebp, dword [ebp]
mov edx, eax
mov dword [esp + 0x20], edx
jmp 0x46721c
push edi
mov ebp, ecx
push ebp
push edx
push eax
call fcn.004c0e40
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 0x46724e
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 0x46725c
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 0x46727b
mov ebp, dword [0x5273d0]
jmp 0x4671d3
mov ebp, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + ecx*4 + 4]
cmp eax, edx
jae 0x4672e8
xor eax, eax
mov dword [ebp + ecx*4 + 4], eax
mov dword [esp + 0x2c], eax
test esi, esi
jle 0x4672db
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 [0x5273d0]
cmp edx, dword [eax]
jb 0x4672c9
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 0x4672a1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [0x5273d0]
dec edx
jmp 0x4672fe
sub eax, edx
mov edx, dword [esp + 0x14]
mov dword [ebp + ecx*4 + 4], eax
mov ebp, dword [0x5273d0]
jmp 0x4672fe
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jne 0x46731a
test edx, edx
jne 0x46731a
mov edx, dword [esp + 0x10]
dec edx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], eax
jmp 0x467336
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x467332
mov ebp, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [eax + ebp*4], edx
mov ebp, dword [0x5273d0]
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 0x4670dd
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x467364
sub edx, esi
inc edx
or edx, dword [esp + 0x3c]
mov dword [eax], edx
push edi
mov dword [ebx], esi
call fcn.00465cad
mov esi, dword [esp + 0x70]
push esi
call fcn.00465cad
pop ecx
pop ecx
cmp ebp, esi
je 0x4673b3
push ebx
call fcn.00465cad
mov esi, dword [esp + 0x58]
xor eax, eax
inc eax
pop ecx
push ebp
cmp esi, eax
je 0x46739b
push esi
push ebx
call fcn.004668e9
add esp, 0xc
jmp 0x4673a3
push ebx
call fcn.0046536e
pop ecx
pop ecx
mov eax, dword [ebp]
test eax, eax
je 0x4673b7
or eax, dword [esp + 0x40]
mov dword [ebp], eax
jmp 0x4673b7
mov esi, dword [esp + 0x54]
xor eax, eax
inc eax
cmp esi, eax
je 0x4673c9
push edi
push esi
push edi
call fcn.004668e9
add esp, 0xc
mov eax, dword [esp + 0x44]
or dword [edi], eax
mov eax, dword [0x5273d0]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x1c], ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x50
ret