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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x51f417
sub esp, 0xa8
mov eax, 0
lea edi, [esp + 0x88]
call fcn.0044ca88
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], ecx
call fcn.00518f80
lea eax, [0x7f1f20]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10001
mov ecx, dword [esp + 0xb4]
cmp ecx, 2
jl 0x51f396
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0xb8]
cmp edx, 0x40
jl 0x51f283
lea eax, [0x831820]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438a20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
jmp 0x51edfb
lea edx, [ebx + 1]
mov ebx, dword [esp + 0x28]
sub ebx, ecx
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
mov eax, edi
mov ebp, esi
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
mov ecx, ebx
mov ebx, dword [esp + 0xb0]
cmp edx, esi
jge 0x51ed45
sub esi, edx
test esi, esi
je 0x51f410
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], ecx
mov eax, ecx
cmp esi, 0xffffffff
je 0x51ec4f
cdq
idiv esi
jmp 0x51ec51
neg eax
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.0051b080
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jae 0x51f409
mov dword [esp + 0x80], edx
mov esi, dword [0xb92b90]
mov edi, ebp
mov ebp, dword [esp + 0x74]
lea edx, [ebp + ebx*4]
test esi, esi
jne 0x51ed35
mov dword [ebp + ebx*4], eax
test ecx, ecx
jne 0x51ed0e
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
lea esi, [edx - 1]
test esi, esi
jl 0x51ecff
mov ecx, dword [ecx + edx*4 - 4]
cmp ecx, 0x10000
jb 0x51ecfb
shr ecx, 0x10
mov eax, 0x10
cmp ecx, 0x100
jb 0x51ecf7
shr ecx, 8
lea edx, [eax + 8]
cmp ecx, 0x100
jae 0x51f402
shl esi, 5
mov eax, ebp
lea ebp, [0xb49640]
movzx ecx, byte [ecx + ebp]
add ecx, edx
add ecx, esi
jmp 0x51ebf7
mov edx, eax
jmp 0x51ecd3
xor eax, eax
jmp 0x51ecc5
mov eax, ebp
lea ebp, [0xb49640]
xor ecx, ecx
jmp 0x51ebf7
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc4], eax
add esp, 0xa8
ret
mov esi, edi
mov edi, edx
call fcn.0044c990
mov edi, esi
jmp 0x51eca0
mov ecx, dword [esp + 0x74]
xor edx, edx
jmp 0x51ee3d
mov eax, dword [esp + 0x34]
inc eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x2c]
mov ecx, ebx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
cmp ebp, edx
jge 0x51ee2e
cmp ebp, eax
jae 0x51f3fb
mov eax, dword [ecx + ebp*4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004e8950
mov eax, dword [esp + 8]
test eax, eax
jne 0x51ed50
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb8]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
cmp esi, 7
jl 0x51f27a
lea edx, [esi - 2]
mov dword [esp + 0x48], edx
mov eax, 0xcccccccd
imul edx
lea edx, [edx + esi - 2]
sar edx, 2
mov eax, ecx
mov ecx, dword [esp + 0x48]
sar ecx, 0x1f
sub edx, ecx
lea ecx, [edi + edx]
xor edx, edx
jmp 0x51ec29
inc edx
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xac]
cmp edx, eax
jge 0x51ee5f
mov dword [esp + 0x38], edx
mov ebx, dword [ecx + edx*4]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
jmp 0x51ed8c
lea eax, [0x7dce40]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [0xb7fa28]
cmp eax, ecx
je 0x51f273
mov dword [esp + 0x64], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ebp, dword [eax + 0xc]
mov esi, dword [eax + 4]
cmp edx, ebp
jg 0x51f231
mov edi, edx
cmp edx, edi
jle 0x51f22a
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x84], esi
cmp esi, ebx
je 0x51eecb
mov dword [esp], esi
mov dword [esp + 4], ebx
shl edi, 2
mov dword [esp + 8], edi
call fcn.0044d190
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x51f216
mov ecx, dword [esp + 0x84]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x64]
movzx ecx, byte [ecx]
mov byte [edx], cl
mov byte [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov ecx, dword [0xb7fa28]
lea ebx, [esp + 0x88]
cmp ebx, ecx
je 0x51efb2
mov dword [esp + 0x68], ecx
mov ebp, dword [ecx + 8]
mov esi, dword [ecx + 4]
test ebp, ebp
jg 0x51f1c9
mov eax, ebp
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], eax
mov eax, ebp
cmp ebp, eax
jle 0x51f1c2
mov dword [esp + 0x18], ebp
mov dword [esp + 0x84], edi
cmp edi, esi
je 0x51ef80
mov dword [esp], edi
mov dword [esp + 4], esi
shl eax, 2
mov dword [esp + 8], eax
call fcn.0044d190
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x68]
movzx ecx, byte [ecx]
mov byte [esp + 0x88], cl
mov byte [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
xor eax, eax
jmp 0x51f046
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x78], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004e7cc0
lea eax, [esp + 0x98]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov ecx, dword [0xb7fa28]
mov dword [esp + 8], ecx
call fcn.004e7a70
lea eax, [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], eax
lea ecx, [esp + 0x98]
mov dword [esp + 8], ecx
call fcn.004e7cc0
mov eax, dword [esp + 0x48]
inc eax
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jl 0x51efdf
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
lea esi, [ebx - 1]
test esi, esi
jl 0x51f1b5
mov ebx, dword [ebp + ebx*4 - 4]
cmp ebx, 0x10000
jb 0x51f1ae
shr ebx, 0x10
mov eax, 0x10
cmp ebx, 0x100
jb 0x51f1a7
shr ebx, 8
lea ebp, [eax + 8]
cmp ebx, 0x100
jae 0x51f3f4
shl esi, 5
lea edi, [0xb49640]
movzx ebx, byte [ebx + edi]
add ebx, ebp
add ebx, esi
mov ebp, dword [esp + 0xb8]
cmp ebx, ebp
jne 0x51edb7
lea eax, [0x7dce40]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [0xb92b90]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x51f192
mov eax, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esp], ecx
sar ecx, 0x1f
mov dword [esp + 4], ecx
call fcn.004e7400
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
call fcn.004ea720
mov eax, dword [esp + 0xc]
test eax, eax
je 0x51edb7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x14], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x51f179
mov eax, dword [esp + 0x74]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [edx], eax
mov dword [esp], edx
call fcn.0051f660
mov eax, dword [esp + 0x70]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0xa8
ret
lea edi, [edx + 0xc]
mov eax, dword [esp + 0x74]
call fcn.0044c990
mov edi, edx
mov eax, dword [esp + 0x6c]
call fcn.0044c990
jmp 0x51f149
mov edx, dword [esp + 0x70]
lea edi, [edx + 8]
mov eax, ecx
call fcn.0044c990
mov eax, edx
jmp 0x51f0e0
mov ebp, eax
jmp 0x51f08d
xor eax, eax
jmp 0x51f07b
lea edi, [0xb49640]
xor ebx, ebx
jmp 0x51f0aa
mov eax, ebp
jmp 0x51ef5e
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], esi
lea eax, [0x7b4160]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 8], ecx
call fcn.00438a20
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
lea ebx, [esp + 0x88]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
jmp 0x51ef56
lea edi, [edx + 4]
mov eax, dword [esp + 0x84]
call fcn.0044c990
jmp 0x51eef5
mov edi, edx
jmp 0x51eea5
mov dword [esp + 0x40], edx
mov dword [esp + 0x5c], ebx
lea eax, [0x7b4160]
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [edx + 4]
mov dword [esp + 8], ecx
call fcn.00438a20
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x40]
jmp 0x51ee9d
mov edx, eax
jmp 0x51eefe
mov eax, ecx
mov ecx, edi
jmp 0x51ee27
mov eax, edx
cmp ecx, 0xffffffff
je 0x51f28f
cdq
idiv ecx
jmp 0x51f291
neg eax
mov ecx, eax
mov ebp, 1
shl ebp, cl
cmp eax, 0x20
sbb esi, esi
and ebp, esi
mov dword [esp], ebp
lea ecx, [eax - 0x20]
mov ebp, ecx
neg ecx
mov esi, 1
shr esi, cl
mov eax, ecx
mov ecx, ebp
mov edi, 1
shl edi, cl
cmp ecx, 0x20
sbb ebp, ebp
and edi, ebp
cmp eax, 0x20
sbb ebp, ebp
and esi, ebp
or esi, edi
mov dword [esp + 4], esi
call fcn.004481e0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x4c], xmm0
movsd qword [esp], xmm0
call fcn.004508d0
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [0x8b0a18]
subsd xmm0, xmm1
movsd xmm1, qword [esp + 0x4c]
divsd xmm1, xmm0
movsd xmm0, qword [0x8b09d0]
mulsd xmm0, xmm1
movsd xmm1, qword [0x8b09e8]
mulsd xmm1, xmm0
mov edx, dword [esp + 0xb4]
cvtsi2sd xmm0, edx
ucomisd xmm0, xmm1
jae 0x51f338
mov ecx, edx
jmp 0x51eba8
lea eax, [0x7d00e0]
mov dword [esp], eax
call fcn.00409c40
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x41
mov eax, dword [0xb92b90]
test eax, eax
jne 0x51f389
lea eax, [0x84facd]
mov dword [edi], eax
mov dword [esp + 0xbc], 0
lea eax, [0x8b2890]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edi
add esp, 0xa8
ret
lea eax, [0x84facd]
call fcn.0044c990
jmp 0x51f363
lea eax, [0x7d00e0]
mov dword [esp], eax
call fcn.00409c40
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x37
mov eax, dword [0xb92b90]
test eax, eax
jne 0x51f3e7
lea eax, [0x84dfb5]
mov dword [edi], eax
mov dword [esp + 0xbc], 0
lea eax, [0x8b2890]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edi
add esp, 0xa8
ret
lea eax, [0x84dfb5]
call fcn.0044c990
jmp 0x51f3c1
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.004266e0
ud2
call fcn.0044b230
jmp fcn.0051eb20