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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [0x51f168]
push esi
xor esi, esi
cmp dword [ebx + 0x1c4], esi
jne 0x462201
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 0x461a61
push 7
call fcn.00460a2a
pop ecx
push ebp
call fcn.00460c1a
pop ecx
test eax, eax
jne 0x461a77
push edi
call fcn.00460c1a
pop ecx
test eax, eax
je 0x461a7f
push 0xc
call fcn.00460a2a
pop ecx
cmp dword [edi], esi
jne 0x461a8b
push 2
call fcn.00460a2a
pop ecx
mov eax, dword [0x51f168]
cmp dword [eax + 0x1c4], esi
jne 0x4621ff
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.00460192
mov eax, dword [ebx]
pop ecx
pop ecx
mov ecx, dword [0x51f168]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x1c], 0
je 0x461b03
sub eax, esi
inc eax
cmp eax, dword [ecx + 0x18]
jle 0x461b03
push 3
call fcn.00460a2a
pop ecx
jmp 0x4621ff
and dword [esp + 0x1c], 0
xor eax, eax
mov edx, dword [esp + 0x54]
inc eax
cmp edx, esi
jne 0x461b7b
cmp edx, eax
jne 0x461b38
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.00460ad1
mov esi, dword [esp + 0x38]
pop ecx
jmp 0x461b7b
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 0x461b7b
push edi
push ebx
call fcn.00460a4c
pop ecx
pop ecx
test eax, eax
js 0x461b7b
mov ebp, dword [esp + 0x1c]
push ebx
push edi
push ebx
call fcn.004660e9
push edi
push ebx
inc ebp
call fcn.00460a4c
add esp, 0x14
test eax, eax
jns 0x461b5c
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x64]
push edi
push ebx
call fcn.00460a4c
pop ecx
pop ecx
test eax, eax
jns 0x461bcc
mov esi, dword [esp + 0x6c]
cmp ebp, esi
je 0x461ba7
push ebp
push ebx
call fcn.00460192
mov eax, dword [ebp]
pop ecx
pop ecx
test eax, eax
je 0x461ba7
or eax, dword [esp + 0x40]
mov dword [ebp], eax
cmp edi, esi
je 0x461c21
push esi
call fcn.00460f8f
mov eax, dword [esi + 4]
pop ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x461c21
mov ecx, dword [esp + 0x3c]
xor eax, eax
inc eax
or ecx, eax
mov dword [esi], ecx
jmp 0x461c21
xor eax, eax
inc eax
cmp esi, eax
jne 0x461c2c
mov eax, dword [edi + 4]
push ebx
push dword [eax]
push ebx
call fcn.0046170d
mov esi, dword [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x54], eax
cmp edi, esi
je 0x461bfd
push esi
push ebx
call fcn.00460192
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
or dword [esi], ecx
cmp ebp, esi
je 0x461c21
push ebp
call fcn.00460f8f
mov eax, dword [ebp + 4]
pop ecx
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
test ecx, ecx
je 0x461c21
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 0x4621ff
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x461c3b
push eax
call fcn.00460f8f
pop ecx
push edi
push edi
call fcn.00462858
pop ecx
pop ecx
mov ecx, dword [0x51f168]
mov dword [esp + 0x54], eax
mov edx, dword [ecx + 0x1c]
and dword [ecx + 0x1c], 0
mov ecx, dword [0x51f168]
mov dword [esp + 0x5c], edx
cmp dword [ecx], 0
jne 0x461ea6
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x461c7a
push ebx
push eax
push ebx
call fcn.00461591
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 0x462177
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 0x461ce9
or dword [esp + 0x14], 0xffffffff
add eax, edx
mov dword [esp + 0x1c], eax
cmp eax, edx
jae 0x461d06
jmp 0x461d5d
push 0
push edx
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.004baa90
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.004ba310
mov ecx, eax
cmp edx, edi
jb 0x461d45
jne 0x461d32
mov eax, dword [esp + 0x48]
cmp ecx, dword [eax + ebp*4 - 4]
jbe 0x461d45
add edi, dword [esp + 0x28]
dec esi
cmp edi, dword [esp + 0x28]
push 1
pop eax
cmovb ebx, eax
test ebx, ebx
je 0x461d12
mov edi, dword [esp + 0x68]
test esi, esi
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
je 0x461e52
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x461dd5
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.004ba310
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 0x461daf
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 0x461d79
mov ebp, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4 + 4]
cmp eax, ecx
jae 0x461e4c
xor eax, eax
mov dword [edx + ebp*4 + 4], eax
mov dword [esp + 0x24], eax
test esi, esi
jle 0x461e45
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 0x461dfb
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec ecx
jmp 0x461e56
sub eax, ecx
mov dword [edx + ebp*4 + 4], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
cmp ebp, eax
jne 0x461e72
test ecx, ecx
jne 0x461e72
mov edx, dword [esp + 0x10]
dec edx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], eax
jmp 0x461e88
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x461e84
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 0x461cbd
jmp 0x462173
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x461eb8
push ebx
push eax
push ebx
call fcn.00461591
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 0x462177
mov ebp, dword [0x51f168]
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 0x461f23
mov eax, dword [ebp]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [edx + ecx*4]
add eax, dword [esp + 0x24]
jmp 0x461f54
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.004baa90
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 0x461fcf
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.004ba310
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
cmp dword [ebp], ecx
jne 0x461f8b
mov ecx, dword [ebp + 0xc]
call fcn.004bb0b0
jmp 0x461f97
push 0
push dword [ebp]
push edx
push eax
call fcn.004baa90
mov ecx, eax
cmp ecx, esi
jb 0x461fbf
jne 0x461fb5
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 0x461fbf
add esi, dword [esp + 0x24]
dec ebx
cmp esi, dword [ebp]
jb 0x461f67
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 0x46211e
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], ecx
test esi, esi
jle 0x46209f
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.004ba310
add eax, dword [esp + 0x20]
mov ecx, dword [ebp]
adc edx, edi
mov dword [esp + 0x2c], eax
cmp ecx, dword [ebp + 0x10]
jne 0x46202f
mov ecx, dword [ebp + 0xc]
call fcn.004bb0b0
mov ebp, dword [ebp]
mov edx, eax
mov dword [esp + 0x20], edx
jmp 0x462040
push edi
mov ebp, ecx
push ebp
push edx
push eax
call fcn.004baa90
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 0x462072
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 0x462080
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 0x46209f
mov ebp, dword [0x51f168]
jmp 0x461ff7
mov ebp, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + ecx*4 + 4]
cmp eax, edx
jae 0x46210c
xor eax, eax
mov dword [ebp + ecx*4 + 4], eax
mov dword [esp + 0x2c], eax
test esi, esi
jle 0x4620ff
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 [0x51f168]
cmp edx, dword [eax]
jb 0x4620ed
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 0x4620c5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebp, dword [0x51f168]
dec edx
jmp 0x462122
sub eax, edx
mov edx, dword [esp + 0x14]
mov dword [ebp + ecx*4 + 4], eax
mov ebp, dword [0x51f168]
jmp 0x462122
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jne 0x46213e
test edx, edx
jne 0x46213e
mov edx, dword [esp + 0x10]
dec edx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], eax
jmp 0x46215a
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x462156
mov ebp, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [eax + ebp*4], edx
mov ebp, dword [0x51f168]
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 0x461f01
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
cmp edi, eax
je 0x462188
sub edx, esi
inc edx
or edx, dword [esp + 0x3c]
mov dword [eax], edx
push edi
mov dword [ebx], esi
call fcn.00460ad1
mov esi, dword [esp + 0x70]
push esi
call fcn.00460ad1
pop ecx
pop ecx
cmp ebp, esi
je 0x4621d7
push ebx
call fcn.00460ad1
mov esi, dword [esp + 0x58]
xor eax, eax
inc eax
pop ecx
push ebp
cmp esi, eax
je 0x4621bf
push esi
push ebx
call fcn.0046170d
add esp, 0xc
jmp 0x4621c7
push ebx
call fcn.00460192
pop ecx
pop ecx
mov eax, dword [ebp]
test eax, eax
je 0x4621db
or eax, dword [esp + 0x40]
mov dword [ebp], eax
jmp 0x4621db
mov esi, dword [esp + 0x54]
xor eax, eax
inc eax
cmp esi, eax
je 0x4621ed
push edi
push esi
push edi
call fcn.0046170d
add esp, 0xc
mov eax, dword [esp + 0x44]
or dword [edi], eax
mov eax, dword [0x51f168]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x1c], ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x50
ret