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

Disassembly:
mov eax, 0x4c
call fcn.005c8080
push ebx
mov ebx, dword [esp + 0x54]
xor eax, eax
push ebp
push esi
xor esi, esi
mov dword [esp + 0x4c], 0
push edi
push dword [ebx + 8]
mov dword [esp + 0x48], 0
xor ebp, ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
call fcn.004bff70
mov edi, dword [esp + 0x6c]
add esp, 4
test eax, eax
jne 0x51c9cb
push dword [ebx + 0xc]
call fcn.004bff70
add esp, 4
test eax, eax
jne 0x51c9cb
mov eax, dword [ebx + 8]
cmp edi, eax
je 0x51c996
test edi, edi
je 0x51c99a
cmp dword [esp + 0x6c], esi
jne 0x51c9d3
push dword [esp + 0x78]
push ebp
push edi
push dword [esp + 0x70]
push ebx
call fcn.0051c2b0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test edi, edi
jne 0x51c9d3
cmp dword [esp + 0x6c], 1
jne 0x51c9cb
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx]
cmp ecx, eax
je 0x51c9cb
push dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push dword [eax]
push ecx
push dword [esp + 0x70]
push ebx
call fcn.0051c2b0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test edi, edi
je 0x51cabb
push ebx
call fcn.0048a390
mov ecx, eax
add esp, 4
mov dword [esp + 0x50], ecx
test ecx, ecx
jne 0x51ca0f
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x71
push 0x10
call fcn.004a94f0
add esp, 0x18
jmp 0x51cd77
mov ebp, dword [ebx + 0x64]
mov dword [esp + 0x30], ebp
test ebp, ebp
je 0x51caa8
cmp dword [ebp + 8], esi
je 0x51caa8
mov eax, dword [ebp + 0x10]
push dword [esp + 0x78]
push dword [eax]
push ecx
push ebx
call fcn.004db7c0
add esp, 0x10
test eax, eax
jne 0x51caa8
mov esi, dword [ebp + 4]
push edi
mov dword [esp + 0x30], esi
call fcn.004c01a0
xor edx, edx
mov ecx, dword [ebp + 0xc]
div esi
mov esi, dword [ebp + 8]
dec ecx
add esp, 4
lea edx, [eax + 1]
mov eax, 1
shl eax, cl
mov dword [esp + 0x48], eax
mov eax, esi
imul eax, dword [esp + 0x48]
cmp dword [ebp + 0x14], eax
je 0x51caa1
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0103
push 0x10
call fcn.004a94f0
add esp, 0x18
xor ebp, ebp
jmp 0x51cd77
cmp edx, esi
cmovbe esi, edx
jmp 0x51cab7
xor eax, eax
mov esi, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x6c]
add eax, esi
push 0
push 0x66ed1f
mov dword [esp + 0x28], eax
lea esi, [eax*4]
push esi
call fcn.004a4e90
push 0
push 0x66ed1f
push esi
mov dword [esp + 0x30], eax
call fcn.004a4e90
push 0
lea ecx, [esi + 4]
mov dword [esp + 0x40], eax
push 0x66ed1f
push ecx
call fcn.004a4e90
push 0
mov ebp, eax
push 0x66ed1f
push esi
mov dword [esp + 0x58], ebp
call fcn.004a4e90
add esp, 0x30
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x51cb23
mov dword [ebp], 0
cmp dword [esp + 0x18], 0
je 0x51d358
mov esi, dword [esp + 0x24]
test esi, esi
je 0x51d358
test ebp, ebp
je 0x51d358
test eax, eax
je 0x51d358
mov eax, dword [esp + 0x34]
xor ebp, ebp
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x3c], 0
lea ecx, [eax + edx]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x51cc65
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x74]
sub ecx, edi
mov dword [esp + 0x4c], ecx
sub eax, edi
mov ecx, esi
mov dword [esp + 0x74], eax
sub ecx, edi
mov dword [esp + 0x58], ecx
nop dword [eax + eax]
mov esi, dword [esp + 0x68]
cmp ebp, edx
jae 0x51cb9d
mov eax, dword [eax + edi]
jmp 0x51cb9f
mov eax, esi
push eax
call fcn.004c01a0
add esp, 4
cmp eax, 0x7d0
jb 0x51cbb6
mov ecx, 6
jmp 0x51cbe6
cmp eax, 0x320
jb 0x51cbc4
mov ecx, 5
jmp 0x51cbe6
cmp eax, 0x12c
jb 0x51cbd2
mov ecx, 4
jmp 0x51cbe6
cmp eax, 0x46
jb 0x51cbde
mov ecx, 3
jmp 0x51cbe6
cmp eax, 0x14
sbb ecx, ecx
add ecx, 2
mov dword [edi], ecx
mov eax, 1
dec ecx
shl eax, cl
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [eax + edi + 4], 0
cmp ebp, dword [esp + 0x6c]
jae 0x51cc0f
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + edi]
jmp 0x51cc11
mov eax, esi
mov esi, dword [esp + 0x58]
add esi, edi
push esi
push dword [edi]
push eax
call fcn.00522b10
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov dword [ecx + edi], eax
test eax, eax
je 0x51cd73
mov eax, dword [esi]
cmp eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
cmovbe eax, dword [esp + 0x1c]
inc ebp
mov ecx, eax
add edi, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esp + 0x38]
jb 0x51cb90
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x14], 0
je 0x51cf5c
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x51ccad
cmp eax, 1
je 0x51cf5c
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0103
push 0x10
call fcn.004a94f0
add esp, 0x18
jmp 0x51cd73
mov dword [esp + 0x30], 0
test eax, eax
jne 0x51cc81
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ecx + edx*4], eax
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
call fcn.00522b10
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x34], ebp
test ebp, ebp
je 0x51cd73
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x1c]
ja 0x51cd1a
mov edx, dword [esp + 0x6c]
lea eax, [edx + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [eax + edx*4], ebp
mov dword [eax + edx*4 + 4], 0
mov eax, dword [esp + 0x24]
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov dword [ecx + edx*4], eax
jmp 0x51cf5c
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
imul eax, edi
cmp ecx, eax
jae 0x51ce3b
lea eax, [edi - 1]
xor edx, edx
add eax, ecx
div edi
cmp eax, dword [esi + 8]
jbe 0x51ce2f
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0103
push 0x10
call fcn.004a94f0
push 0
push 0x66ed1f
push ebp
call fcn.004a4ec0
add esp, 0x24
mov ebp, dword [esp + 0x10]
xor edi, edi
push dword [esp + 0x44]
call fcn.004dba10
push 0
push 0x66ed1f
push dword [esp + 0x24]
call fcn.004a4ec0
push 0
push 0x66ed1f
push dword [esp + 0x3c]
call fcn.004a4ec0
mov ebx, dword [esp + 0x44]
add esp, 0x1c
test ebx, ebx
je 0x51cddf
mov eax, dword [ebx]
mov esi, ebx
test eax, eax
je 0x51cdcf
push 0
push 0x66ed1f
push eax
call fcn.004a4ec0
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 0xc
test eax, eax
jne 0x51cdb5
push 0
push 0x66ed1f
push ebx
call fcn.004a4ec0
add esp, 0xc
test edi, edi
je 0x51ce13
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x51ce03
nop dword [eax + eax]
push eax
call fcn.004db780
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x51cdf0
push 0
push 0x66ed1f
push edi
call fcn.004a4ec0
add esp, 0xc
push 0
push 0x66ed1f
push ebp
call fcn.004a4ec0
mov eax, dword [esp + 0x60]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x6c]
add eax, edx
mov dword [esp + 0x20], eax
jmp 0x51ce43
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
mov edi, edx
mov ebp, dword [esi + 0x10]
cmp edx, eax
jae 0x51cf49
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea esi, [ebx + edx*4]
mov edx, dword [esp + 0x28]
sub edx, ebx
sub eax, ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], eax
nop
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x60]
dec eax
cmp edi, eax
jae 0x51ce93
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
cmp ecx, eax
jb 0x51cf11
sub ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x51ce95
mov dword [esi], ecx
push 0
mov dword [edx + esi + 4], 0
push 0x66ed1f
push dword [esi]
call fcn.004a4e90
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov dword [ecx + esi], eax
test eax, eax
je 0x51cfaf
push dword [esi]
push dword [esp + 0x18]
push eax
call fcn.005c9000
mov eax, dword [esi]
add esp, 0xc
cmp eax, dword [esp + 0x1c]
cmovbe eax, dword [esp + 0x1c]
cmp dword [ebp], 0
mov ecx, eax
mov dword [esp + 0x1c], ecx
je 0x51cf11
mov eax, dword [esp + 0x58]
inc edi
mov dword [eax + esi], ebp
add esi, 4
mov eax, dword [esp + 0x48]
lea ebp, [ebp + eax*4]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
cmp edi, dword [esp + 0x20]
jae 0x51cf45
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
jmp 0x51ce70
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0103
push 0x10
call fcn.004a94f0
push 0
push 0x66ed1f
push dword [esp + 0x54]
jmp 0x51cd6b
mov dword [esp + 0x1c], ecx
push 0
push 0x66ed1f
push dword [esp + 0x3c]
call fcn.004a4ec0
add esp, 0xc
mov ebp, dword [esp + 0x3c]
push 0
push 0x66ed1f
lea eax, [ebp*4 + 4]
push eax
call fcn.004a4e90
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x51cfd1
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push edi
push 0x66ed1f
call fcn.004a94e0
push edi
push 0xc0100
push 0x10
call fcn.004a94f0
add esp, 0x18
mov ebp, dword [esp + 0x10]
jmp 0x51cd79
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0100
jmp 0x51cf2e
lea eax, [edi + ebp*4]
mov esi, edi
xor edx, edx
mov dword [eax], 0
mov edi, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
test edi, edi
je 0x51d056
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x58], eax
nop dword [eax]
mov dword [eax + ebp], esi
xor edi, edi
mov ecx, dword [ebp]
mov eax, 1
dec ecx
shl eax, cl
test eax, eax
je 0x51d03e
push ebx
call fcn.004dbe60
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x51d384
mov ecx, dword [ebp]
mov eax, 1
dec ecx
inc edi
shl eax, cl
add esi, 4
cmp edi, eax
jb 0x51d014
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
inc edx
mov eax, dword [esp + 0x58]
add ebp, 4
mov dword [esp + 0x4c], edx
cmp edx, edi
jb 0x51d000
mov eax, dword [esp + 0x48]
cmp esi, eax
je 0x51d08e
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0103
push 0x10
call fcn.004a94f0
add esp, 0x18
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x51cd79
push ebx
call fcn.004dbe60
mov ecx, eax
add esp, 4
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x51d384
xor ebp, ebp
test edi, edi
je 0x51d17c
mov ecx, dword [esp + 0x10]
mov edi, ecx
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
sub eax, ecx
sub esi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], esi
nop dword [eax]
cmp ebp, dword [esp + 0x6c]
jae 0x51d0db
push dword [eax + edi]
jmp 0x51d0df
push dword [esp + 0x50]
mov eax, dword [edi]
push dword [eax]
call fcn.004db870
add esp, 8
test eax, eax
je 0x51d384
cmp dword [esi + edi], 1
jbe 0x51d16a
mov eax, dword [edi]
push dword [esp + 0x78]
push dword [eax]
push dword [esp + 0x4c]
push ebx
call fcn.004db900
add esp, 0x10
test eax, eax
je 0x51d081
mov ecx, dword [esp + 0x34]
mov esi, 1
mov eax, esi
mov ecx, dword [ecx + edi]
dec ecx
shl eax, cl
cmp eax, esi
jbe 0x51d166
nop dword [eax + eax]
push dword [esp + 0x78]
mov eax, dword [edi]
push dword [esp + 0x48]
push dword [eax + esi*4 - 4]
push dword [eax + esi*4]
push ebx
call fcn.004db6c0
add esp, 0x14
test eax, eax
je 0x51d081
mov eax, dword [esp + 0x34]
inc esi
mov ecx, dword [eax + edi]
mov eax, 1
dec ecx
shl eax, cl
cmp esi, eax
jb 0x51d130
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
inc ebp
add edi, 4
cmp ebp, dword [esp + 0x38]
jb 0x51d0d0
mov eax, dword [ebx]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x51cfa6
mov esi, dword [esp + 0x78]
push esi
push edi
push dword [esp + 0x44]
push ebx
call eax
add esp, 0x10
test eax, eax
je 0x51cfa6
mov ecx, dword [esp + 0x1c]
mov ebp, 1
mov edi, dword [esp + 0x64]
sub ecx, ebp
mov dword [esp + 0x3c], ecx
js 0x51d335
nop
test ebp, ebp
jne 0x51d1dc
push esi
push edi
push edi
push ebx
call fcn.004db900
add esp, 0x10
test eax, eax
je 0x51d081
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x4c], 0
jbe 0x51d2ef
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub edx, eax
mov ebx, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], eax
nop word [eax + eax]
add eax, ebx
cmp dword [eax + edx], ecx
jbe 0x51d2d1
mov eax, dword [eax]
movsx esi, byte [eax + ecx]
test esi, esi
je 0x51d2cd
mov eax, esi
shr eax, 0x1f
test eax, eax
je 0x51d234
neg esi
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x51d268
test ebp, ebp
jne 0x51d25d
push dword [esp + 0x78]
push edi
push dword [esp + 0x68]
call fcn.004dbb70
add esp, 0xc
test eax, eax
je 0x51d081
mov ecx, dword [esp + 0x40]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
sar esi, 1
mov eax, dword [eax + esi*4]
test ebp, ebp
je 0x51d2a7
push eax
push edi
call fcn.004db870
add esp, 8
test eax, eax
je 0x51d081
mov esi, dword [esp + 0x78]
push esi
push edi
push dword [esp + 0x68]
call fcn.004dc7c0
add esp, 0xc
test eax, eax
je 0x51d313
mov ecx, dword [esp + 0x3c]
xor ebp, ebp
mov edx, dword [esp + 0x50]
jmp 0x51d2d1
mov esi, dword [esp + 0x78]
push esi
push eax
push edi
push edi
push dword [esp + 0x70]
call fcn.004db6c0
add esp, 0x14
test eax, eax
je 0x51d081
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
jmp 0x51d2d1
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x4c]
add ebx, 4
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
jb 0x51d210
mov ebx, dword [esp + 0x60]
sub ecx, 1
mov dword [esp + 0x3c], ecx
jns 0x51d1c0
test ebp, ebp
jne 0x51d335
cmp dword [esp + 0x40], ebp
je 0x51d343
push esi
push edi
push ebx
call fcn.004dbb70
add esp, 0xc
jmp 0x51d33f
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xa3
jmp 0x51d077
push edi
push ebx
call fcn.004dc120
add esp, 8
test eax, eax
je 0x51d384
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], 1
jmp 0x51cd79
call fcn.004a93e0
push str.ossl_ec_wNAF_mul
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0xc0100
push 0x10
call fcn.004a94f0
add esp, 0x18
jmp 0x51cd73
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
jmp 0x51cd79