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

Disassembly:
mov eax, 0x50
call fcn.005a74b0
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
xor eax, eax
push esi
xor esi, esi
mov dword [esp + 0x54], 0
push edi
push dword [ebp + 8]
mov dword [esp + 0x48], 0
xor ebx, ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.005159e0
add esp, 4
test eax, eax
jne 0x587144
push dword [ebp + 0xc]
call fcn.005159e0
add esp, 4
test eax, eax
jne 0x587144
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x58710f
cmp dword [esp + 0x70], ebx
jne 0x587150
push dword [esp + 0x7c]
push eax
push edi
push dword [esp + 0x74]
push ebp
call fcn.00586aa0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x70]
cmp eax, 1
jne 0x58721d
push dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push dword [eax]
mov eax, dword [esp + 0x80]
push dword [eax]
push dword [esp + 0x74]
push ebp
call fcn.00586aa0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x587219
push ebp
call fcn.004ff270
mov ecx, eax
add esp, 4
mov dword [esp + 0x58], ecx
test ecx, ecx
jne 0x587183
push 0x1d6
push str.cryptoecec_mult.c
push 0x71
push 0xbb
push 0x10
call fcn.004fe660
add esp, 0x14
jmp 0x5874cc
mov ebx, dword [ebp + 0x60]
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x587206
cmp dword [ebx + 8], esi
je 0x587206
mov eax, dword [ebx + 0x10]
push dword [esp + 0x7c]
push dword [eax]
push ecx
push ebp
call fcn.00537150
add esp, 0x10
test eax, eax
jne 0x587206
mov esi, dword [ebx + 4]
push edi
mov dword [esp + 0x30], esi
call fcn.00515aa0
xor edx, edx
mov ecx, dword [ebx + 0xc]
div esi
mov edx, dword [ebx + 8]
add esp, 4
lea esi, [eax + 1]
mov eax, 1
cmp esi, edx
cmova esi, edx
dec ecx
shl eax, cl
imul edx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x54], eax
cmp dword [ebx + 0x14], edx
je 0x587219
push 0x1f2
push str.cryptoecec_mult.c
push 0x44
push 0xbb
push 0x10
call fcn.004fe660
add esp, 0x14
xor ebx, ebx
jmp 0x5874cc
mov esi, 1
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x70]
add eax, esi
push 0x200
push str.cryptoecec_mult.c
mov dword [esp + 0x20], eax
lea esi, [eax*4]
push esi
call fcn.004fd490
push 0x201
push str.cryptoecec_mult.c
push esi
mov dword [esp + 0x2c], eax
call fcn.004fd490
push 0x203
lea ecx, [esi + 4]
mov dword [esp + 0x3c], eax
push str.cryptoecec_mult.c
push ecx
call fcn.004fd490
push 0x204
mov ebx, eax
push str.cryptoecec_mult.c
push esi
mov dword [esp + 0x54], ebx
call fcn.004fd490
add esp, 0x30
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x58728c
mov dword [ebx], 0
cmp dword [esp + 0x14], 0
je 0x587a6a
mov esi, dword [esp + 0x20]
test esi, esi
je 0x587a6a
test ebx, ebx
je 0x587a6a
test eax, eax
je 0x587a6a
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x3c], 0
lea ecx, [eax + edx]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x5873c8
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x78]
sub ecx, edi
mov dword [esp + 0x4c], ecx
sub eax, edi
mov ecx, esi
mov dword [esp + 0x50], eax
sub ecx, edi
mov dword [esp + 0x5c], ecx
cmp ebx, edx
jae 0x587306
push dword [eax + edi]
call fcn.00515aa0
mov esi, dword [esp + 0x70]
jmp 0x587310
mov esi, dword [esp + 0x6c]
push esi
call fcn.00515aa0
add esp, 4
cmp eax, 0x7d0
jb 0x587321
mov ecx, 6
jmp 0x587351
cmp eax, 0x320
jb 0x58732f
mov ecx, 5
jmp 0x587351
cmp eax, 0x12c
jb 0x58733d
mov ecx, 4
jmp 0x587351
cmp eax, 0x46
jb 0x587349
mov ecx, 3
jmp 0x587351
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 ebx, dword [esp + 0x70]
jae 0x58737a
mov eax, dword [esp + 0x50]
mov eax, dword [eax + edi]
jmp 0x58737c
mov eax, esi
mov esi, dword [esp + 0x5c]
add esi, edi
push esi
push dword [edi]
push eax
call fcn.00572ea0
mov ecx, dword [esp + 0x58]
add esp, 0xc
mov dword [ecx + edi], eax
test eax, eax
je 0x5874c8
mov ecx, dword [esp + 0x1c]
cmp dword [esi], ecx
mov eax, dword [esp + 0x50]
cmova ecx, dword [esi]
inc ebx
mov edx, dword [esp + 0x70]
add edi, 4
mov dword [esp + 0x1c], ecx
cmp ebx, dword [esp + 0x38]
jb 0x5872f4
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x28], 0
je 0x587719
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x587404
cmp eax, 1
je 0x587719
push 0x229
push str.cryptoecec_mult.c
push 0x44
push 0xbb
push 0x10
call fcn.004fe660
add esp, 0x14
jmp 0x5874c8
mov dword [esp + 0x30], 0
test eax, eax
je 0x587417
push 0x232
jmp 0x5873e9
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
mov dword [ecx + edx*4], eax
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
call fcn.00572ea0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x5874c8
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x1c]
ja 0x587478
mov edx, dword [esp + 0x70]
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [eax + edx*4], ebx
mov dword [eax + edx*4 + 4], 0
mov eax, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov dword [ecx + edx*4], eax
jmp 0x587719
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
imul eax, edi
cmp ecx, eax
jae 0x58759f
lea eax, [edi - 1]
xor edx, edx
add eax, ecx
div edi
cmp eax, dword [esi + 8]
jbe 0x587593
push 0x25d
push str.cryptoecec_mult.c
push 0x44
push 0xbb
push 0x10
call fcn.004fe660
push 0x25e
push str.cryptoecec_mult.c
push ebx
call fcn.004fd4c0
add esp, 0x20
mov ebx, dword [esp + 0x10]
xor ebp, ebp
push dword [esp + 0x44]
call fcn.005372f0
push 0x306
push str.cryptoecec_mult.c
push dword [esp + 0x20]
call fcn.004fd4c0
push 0x307
push str.cryptoecec_mult.c
push dword [esp + 0x38]
call fcn.004fd4c0
mov edi, dword [esp + 0x40]
add esp, 0x1c
test edi, edi
je 0x587540
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x58752d
push 0x30c
push str.cryptoecec_mult.c
push eax
call fcn.004fd4c0
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 0xc
test eax, eax
jne 0x587510
push 0x30e
push str.cryptoecec_mult.c
push edi
call fcn.004fd4c0
add esp, 0xc
mov edi, dword [esp + 0x48]
test edi, edi
je 0x587576
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x587563
push eax
call fcn.00537110
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x587550
push 0x314
push str.cryptoecec_mult.c
push edi
call fcn.004fd4c0
add esp, 0xc
push 0x316
push str.cryptoecec_mult.c
push ebx
call fcn.004fd4c0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x70]
add eax, edx
mov dword [esp + 0x18], eax
jmp 0x5875a7
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov edi, edx
mov ebx, dword [esi + 0x10]
cmp edx, eax
jae 0x587703
mov ebp, dword [esp + 0x20]
lea esi, [edx*4]
mov edx, dword [esp + 0x24]
add esi, ebp
mov eax, dword [esp + 0x10]
sub edx, ebp
sub eax, ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], eax
nop dword [eax]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x64]
dec eax
cmp edi, eax
jae 0x587603
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
cmp ecx, eax
jb 0x587682
sub ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x587605
mov dword [esi], ecx
push 0x279
mov dword [edx + esi + 4], 0
push str.cryptoecec_mult.c
push dword [esi]
call fcn.004fd490
mov ecx, dword [esp + 0x5c]
add esp, 0xc
mov dword [ecx + esi], eax
test eax, eax
je 0x5876d8
push dword [esi]
push dword [esp + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esi], ecx
cmova ecx, dword [esi]
cmp dword [ebx], 0
mov dword [esp + 0x1c], ecx
je 0x5876ad
mov eax, dword [esp + 0x5c]
inc edi
mov dword [eax + esi], ebx
add esi, 4
mov eax, dword [esp + 0x54]
lea ebx, [ebx + eax*4]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], eax
cmp edi, dword [esp + 0x18]
jae 0x587703
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
jmp 0x5875e0
push 0x26c
push str.cryptoecec_mult.c
push 0x44
push 0xbb
push 0x10
call fcn.004fe660
push 0x26d
push str.cryptoecec_mult.c
push dword [esp + 0x50]
jmp 0x5874c0
push 0x284
push str.cryptoecec_mult.c
push 0x44
push 0xbb
push 0x10
call fcn.004fe660
push 0x285
push str.cryptoecec_mult.c
push dword [esp + 0x50]
jmp 0x5874c0
push 0x27b
push str.cryptoecec_mult.c
push 0x41
push 0xbb
push 0x10
call fcn.004fe660
push 0x27c
push str.cryptoecec_mult.c
push dword [esp + 0x50]
jmp 0x5874c0
push 0x28c
push str.cryptoecec_mult.c
push dword [esp + 0x3c]
call fcn.004fd4c0
add esp, 0xc
mov ebx, dword [esp + 0x3c]
push 0x296
push str.cryptoecec_mult.c
lea eax, [ebx*4 + 4]
push eax
call fcn.004fd490
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x48], ecx
test ecx, ecx
jne 0x587761
push 0x298
push str.cryptoecec_mult.c
push 0x41
push 0xbb
push 0x10
call fcn.004fe660
add esp, 0x14
jmp 0x5874c8
mov edi, dword [esp + 0x38]
lea eax, [ecx + ebx*4]
xor edx, edx
mov dword [esp + 0x50], eax
mov dword [eax], 0
mov esi, ecx
mov dword [esp + 0x54], edx
test edi, edi
je 0x5877e4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0x5c], eax
nop dword [eax]
mov dword [eax + ebx], esi
xor edi, edi
mov ecx, dword [ebx]
mov eax, 1
dec ecx
shl eax, cl
test eax, eax
je 0x5877cc
push ebp
call fcn.005375f0
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x5874c8
mov ecx, dword [ebx]
mov eax, 1
dec ecx
inc edi
shl eax, cl
add esi, 4
cmp edi, eax
jb 0x5877a3
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x38]
inc edx
mov eax, dword [esp + 0x5c]
add ebx, 4
mov dword [esp + 0x54], edx
cmp edx, edi
jb 0x587790
mov eax, dword [esp + 0x50]
cmp esi, eax
je 0x5877f2
push 0x2a9
jmp 0x5873e9
push ebp
call fcn.005375f0
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
test esi, esi
je 0x587a8a
xor ebx, ebx
test edi, edi
je 0x5878dc
mov ecx, dword [esp + 0x10]
mov edi, ecx
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x14]
sub eax, ecx
sub esi, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x34], esi
nop dword [eax]
cmp ebx, dword [esp + 0x70]
jae 0x58783b
push dword [eax + edi]
jmp 0x58783f
push dword [esp + 0x58]
mov eax, dword [edi]
push dword [eax]
call fcn.005371e0
add esp, 8
test eax, eax
je 0x5874c8
cmp dword [esi + edi], 1
jbe 0x5878ca
mov eax, dword [edi]
push dword [esp + 0x7c]
push dword [eax]
push dword [esp + 0x4c]
push ebp
call fcn.00537260
add esp, 0x10
test eax, eax
je 0x5874c8
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 0x5878c6
nop dword [eax + eax]
push dword [esp + 0x7c]
mov eax, dword [edi]
push dword [esp + 0x48]
push dword [eax + esi*4 - 4]
push dword [eax + esi*4]
push ebp
call fcn.00537060
add esp, 0x14
test eax, eax
je 0x5874c8
mov eax, dword [esp + 0x34]
inc esi
mov ecx, dword [eax + edi]
mov eax, 1
dec ecx
shl eax, cl
cmp esi, eax
jb 0x587890
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
inc ebx
add edi, 4
cmp ebx, dword [esp + 0x38]
jb 0x587830
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
push edi
push eax
push dword [esp + 0x44]
push ebp
call fcn.00537850
add esp, 0x10
test eax, eax
je 0x5874c8
mov ecx, dword [esp + 0x1c]
mov ebp, 1
mov ebx, dword [esp + 0x68]
sub ecx, ebp
mov dword [esp + 0x1c], ecx
js 0x587a47
mov esi, dword [esp + 0x64]
test ebp, ebp
jne 0x587934
push edi
push ebx
push ebx
push esi
call fcn.00537260
add esp, 0x10
test eax, eax
je 0x5874c8
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x54], 0
jbe 0x587a23
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub edx, eax
mov edi, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
nop
add eax, edi
cmp dword [eax + edx], ecx
jbe 0x587a05
mov eax, dword [eax]
movsx ecx, byte [eax + ecx]
test ecx, ecx
je 0x587a01
mov eax, ecx
mov esi, ecx
shr eax, 0x1f
neg esi
test eax, eax
cmove esi, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x5879bb
test ebp, ebp
jne 0x5879b0
push dword [esp + 0x7c]
push ebx
push dword [esp + 0x6c]
call fcn.005373d0
add esp, 0xc
test eax, eax
je 0x5874c8
mov ecx, dword [esp + 0x40]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x40], eax
mov eax, dword [edi]
sar esi, 1
test ebp, ebp
je 0x5879df
push dword [eax + esi*4]
push ebx
call fcn.005371e0
add esp, 8
xor ebp, ebp
test eax, eax
je 0x587a8c
mov esi, dword [esp + 0x64]
jmp 0x5879fd
push dword [esp + 0x7c]
push dword [eax + esi*4]
mov esi, dword [esp + 0x6c]
push ebx
push ebx
push esi
call fcn.00537060
add esp, 0x14
test eax, eax
je 0x5874c8
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
add edi, 4
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
jb 0x587960
mov edi, dword [esp + 0x7c]
sub ecx, 1
mov dword [esp + 0x1c], ecx
jns 0x587914
test ebp, ebp
jne 0x587a47
cmp dword [esp + 0x40], ebp
je 0x587a5c
push edi
push ebx
push esi
call fcn.005373d0
add esp, 0xc
jmp 0x587a54
push ebx
push dword [esp + 0x68]
call fcn.005377f0
add esp, 8
test eax, eax
je 0x5874c8
mov ebx, dword [esp + 0x10]
mov ebp, 1
jmp 0x5874ce
push 0x20b
push str.cryptoecec_mult.c
push 0x41
push 0xbb
push 0x10
call fcn.004fe660
add esp, 0x14
jmp 0x5874c8
xor ebp, ebp
mov ebx, dword [esp + 0x10]
jmp 0x5874ce