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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x74]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x7c]
mov eax, dword [esi]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
test byte [eax], 1
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edi, dword [esi + 4]
jne 0x4bc5b0
sub esp, 0xc
push 0x252
push str..crypto_bn_bn_exp.c
push 0x66
push 0x7c
push 3
call sym._ERR_put_error
add esp, 0x20
add esp, 0x5c
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
ret
sub esp, 0xc
mov ebp, dword [esp + 0x5c]
push ebp
call sym._BN_num_bits
mov dword [esp + 0x50], eax
add esp, 0x10
test eax, eax
jne 0x4bc5f0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._BN_set_word
sub esp, 0xc
mov ebx, dword [esp + 0x58]
push ebx
call sym._BN_CTX_start
pop ebp
mov edx, dword [esp + 0x58]
push edx
call sym._BN_CTX_get
add esp, 0x10
test eax, eax
mov ebp, eax
je 0x4bcb40
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x4bcbee
cmp dword [esp + 0x40], 0x3a9
mov dword [esp + 0xc], 6
jg 0x4bc650
cmp dword [esp + 0x40], 0x132
mov dword [esp + 0xc], 5
jle 0x4bcbc0
lea esi, [esi]
mov dword [esp + 0x2c], 1
mov cl, byte [esp + 0xc]
shl dword [esp + 0x2c], cl
mov edx, dword [esp + 0x2c]
imul edx, edi
shl edx, 2
mov dword [esp + 0x24], edx
push ebx
push 0x274
push str..crypto_bn_bn_exp.c
mov ecx, dword [esp + 0x30]
add ecx, 0x40
push ecx
call sym._CRYPTO_malloc
mov dword [esp + 0x38], eax
add esp, 0x10
test eax, eax
je 0x4bcb40
mov eax, dword [esp + 0x28]
and eax, 0xffffffc0
add eax, 0x40
mov dword [esp + 0x20], eax
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push 0
push eax
call sym._memset
pop eax
mov edx, dword [esp + 0x58]
push edx
mov ebx, dword [esp + 0x40]
push ebx
mov eax, dword [esp + 0x44]
add eax, 4
mov dword [esp + 0x28], eax
push eax
sub esp, 8
call sym._BN_value_one
pop edx
pop ecx
push eax
push ebp
call sym._BN_mod_mul_montgomery
add esp, 0x20
test eax, eax
je 0x4bcb40
cmp dword [ebp + 8], edi
jl 0x4bcc38
test ebp, ebp
je 0x4bcb40
mov eax, dword [ebp + 4]
cmp eax, edi
jge 0x4bc724
mov ecx, dword [ebp]
lea edx, [eax + 1]
lea esi, [esi]
lea edi, [edi]
mov eax, edx
cmp eax, edi
mov dword [ecx + edx*4 - 4], 0
lea edx, [edx + 1]
jl 0x4bc710
mov dword [ebp + 4], eax
lea ebx, [edi*4]
xor edx, edx
xor ecx, ecx
cmp ebx, 0
mov dword [esp + 8], ebx
jbe 0x4bc75b
nop
lea esi, [esi]
mov ebx, dword [ebp]
mov al, byte [edx + ebx]
mov ebx, dword [esp + 0x20]
mov byte [ecx + ebx], al
inc edx
add ecx, dword [esp + 0x2c]
cmp dword [esp + 8], edx
ja 0x4bc740
mov eax, dword [ebp + 4]
test eax, eax
mov ecx, eax
jle 0x4bc785
mov eax, dword [ebp]
lea edx, [eax + ecx*4 - 4]
nop
lea esi, [esi]
mov ebx, dword [edx]
sub edx, 4
test ebx, ebx
jne 0x4bc785
lea eax, [ecx - 1]
test eax, eax
mov dword [ebp + 4], eax
mov ecx, eax
jg 0x4bc770
sub esp, 0xc
mov ebx, dword [esp + 0x58]
push ebx
call sym._BN_CTX_get
mov dword [esp + 0x2c], eax
pop eax
mov ecx, dword [esp + 0x58]
push ecx
call sym._BN_CTX_get
mov dword [esp + 0x28], eax
add esp, 0x10
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4bcb40
test eax, eax
je 0x4bcb40
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x4bc7dc
sub esp, 8
push esi
push eax
call sym._BN_ucmp
add esp, 0x10
test eax, eax
js 0x4bcc80
sub esp, 0xc
mov ecx, dword [esp + 0x58]
push ecx
push esi
mov eax, dword [esp + 0x68]
push eax
mov esi, dword [esp + 0x30]
push esi
push 0
call sym._BN_div
add esp, 0x20
test eax, eax
mov edx, dword [esp + 0x18]
je 0x4bcb40
sub esp, 0xc
mov ecx, dword [esp + 0x58]
push ecx
mov eax, dword [esp + 0x40]
push eax
mov esi, dword [esp + 0x28]
push esi
push edx
mov ebx, dword [esp + 0x34]
push ebx
call sym._BN_mod_mul_montgomery
add esp, 0x20
test eax, eax
je 0x4bcb40
sub esp, 8
mov ebx, dword [esp + 0x20]
push ebx
mov edx, dword [esp + 0x28]
push edx
call sym._BN_copy
add esp, 0x10
test eax, eax
je 0x4bcb40
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], edi
jl 0x4bcc89
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4bcb40
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
cmp eax, edi
jge 0x4bc88b
mov ecx, dword [ecx]
lea edx, [eax + 1]
mov eax, edx
cmp eax, edi
mov dword [ecx + edx*4 - 4], 0
lea edx, [edx + 1]
jl 0x4bc873
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
lea ebx, [edi*4]
xor edx, edx
cmp ebx, 0
mov ecx, 1
jbe 0x4bc8be
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
mov al, byte [edx + eax]
mov esi, dword [esp + 0x20]
mov byte [ecx + esi], al
inc edx
add ecx, dword [esp + 0x2c]
cmp ebx, edx
ja 0x4bc89e
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
test eax, eax
mov ecx, eax
jle 0x4bc8e7
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
lea edx, [eax + ecx*4 - 4]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4bc8e7
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], ebx
mov ecx, ebx
jg 0x4bc8ce
cmp dword [esp + 0xc], 1
jle 0x4bc9df
mov dword [esp + 0x44], 2
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x44], eax
jge 0x4bc9df
lea esi, [edi*4]
sub esp, 0xc
mov edx, dword [esp + 0x58]
push edx
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [esp + 0x30]
push ecx
mov ebx, dword [esp + 0x30]
push ebx
mov edx, dword [esp + 0x38]
push edx
call sym._BN_mod_mul_montgomery
add esp, 0x20
test eax, eax
je 0x4bcb40
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], edi
jl 0x4bcc60
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4bcb40
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
cmp edx, edi
jge 0x4bc97c
mov ecx, dword [ecx]
lea eax, [edx + 1]
mov edx, eax
cmp edx, edi
mov dword [ecx + eax*4 - 4], 0
lea eax, [eax + 1]
jl 0x4bc964
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
xor ebx, ebx
cmp esi, 0
mov ecx, dword [esp + 0x44]
jbe 0x4bc9a7
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov al, byte [ebx + eax]
mov edx, dword [esp + 0x20]
mov byte [ecx + edx], al
inc ebx
add ecx, dword [esp + 0x2c]
cmp esi, ebx
ja 0x4bc987
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
test edx, edx
jle 0x4bc9cd
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
lea ecx, [eax + edx*4 - 4]
dec edx
mov ebx, dword [ecx]
sub ecx, 4
test ebx, ebx
jne 0x4bc9cd
mov eax, edx
mov ebx, dword [esp + 0x1c]
mov dword [ebx + 4], edx
dec edx
test eax, eax
jg 0x4bc9b6
inc dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x44], edx
jl 0x4bc90f
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
lea eax, [ecx + esi - 1]
cdq
idiv esi
imul eax, esi
dec eax
mov dword [esp + 0x38], eax
js 0x4bcb15
lea ebx, [edi*4]
mov dword [esp + 0x10], ebx
xor esi, esi
mov eax, dword [esp + 0xc]
cmp esi, eax
mov dword [esp + 0x34], 0
jge 0x4bca65
sub esp, 0xc
mov ecx, dword [esp + 0x58]
push ecx
mov edx, dword [esp + 0x40]
push edx
push ebp
push ebp
push ebp
call sym._BN_mod_mul_montgomery
add esp, 0x20
test eax, eax
je 0x4bcb40
mov ebx, dword [esp + 0x34]
sub esp, 8
mov edx, dword [esp + 0x40]
push edx
mov eax, dword [esp + 0x5c]
push eax
call sym._BN_is_bit_set
add ebx, ebx
add ebx, eax
mov dword [esp + 0x44], ebx
inc esi
add esp, 0x10
dec dword [esp + 0x38]
cmp esi, dword [esp + 0xc]
jl 0x4bca19
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], edi
jl 0x4bcc4c
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4bcb40
xor ebx, ebx
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x10], 0
jmp 0x4bcaa9
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edx, dword [eax]
mov al, byte [ecx + esi]
mov byte [ebx + edx], al
inc ebx
add ecx, dword [esp + 0x2c]
cmp dword [esp + 0x10], ebx
ja 0x4bca90
test edi, edi
mov ebx, edi
mov ecx, edi
jle 0x4bcc74
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
lea edx, [esi + edi*4 - 4]
jmp 0x4bcad0
mov eax, dword [edx]
sub edx, 4
test eax, eax
jne 0x4bcae2
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4bcad0
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ebx
sub esp, 0xc
mov ebx, dword [esp + 0x58]
push ebx
mov eax, dword [esp + 0x40]
push eax
mov edx, dword [esp + 0x30]
push edx
push ebp
push ebp
call sym._BN_mod_mul_montgomery
add esp, 0x20
test eax, eax
je 0x4bcb40
mov ecx, dword [esp + 0x38]
test ecx, ecx
jns 0x4bca07
mov edx, dword [esp + 0x4c]
push edx
mov esi, dword [esp + 0x34]
push esi
push ebp
mov edi, dword [esp + 0x64]
push edi
call sym._BN_from_montgomery
add esp, 0x10
test eax, eax
je 0x4bcb40
mov dword [esp + 0x3c], 1
lea esi, [esi]
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x4bcc17
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4bcb74
sub esp, 8
mov edx, dword [esp + 0x2c]
push edx
mov esi, dword [esp + 0x2c]
push esi
call sym._OPENSSL_cleanse
pop eax
mov edi, dword [esp + 0x34]
push edi
call sym._CRYPTO_free
add esp, 0x10
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4bcb8c
sub esp, 0xc
mov eax, dword [esp + 0x24]
push eax
call sym._BN_clear
add esp, 0x10
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4bcba4
sub esp, 0xc
mov ecx, dword [esp + 0x28]
push ecx
call sym._BN_clear
add esp, 0x10
sub esp, 0xc
mov edi, dword [esp + 0x58]
push edi
call sym._BN_CTX_end
mov eax, dword [esp + 0x4c]
add esp, 0x10
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x40], 0x59
mov dword [esp + 0xc], 4
jg 0x4bc650
cmp dword [esp + 0x40], 0x17
setge bl
and ebx, 0xff
lea eax, [ebx + ebx + 1]
mov dword [esp + 0xc], eax
jmp 0x4bc650
call sym._BN_MONT_CTX_new
test eax, eax
mov dword [esp + 0x30], eax
je 0x4bcb4c
push ecx
mov edx, dword [esp + 0x50]
push edx
push esi
push eax
call sym._BN_MONT_CTX_set
add esp, 0x10
test eax, eax
jne 0x4bc625
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4bcb4c
sub esp, 0xc
mov ebx, dword [esp + 0x3c]
push ebx
call sym._BN_MONT_CTX_free
add esp, 0x10
jmp 0x4bcb4c
sub esp, 8
push edi
push ebp
call sym._bn_expand2
add esp, 0x10
test eax, eax
jmp 0x4bc6ef
sub esp, 8
push edi
push edx
call sym._bn_expand2
add esp, 0x10
test eax, eax
jmp 0x4bca78
sub esp, 8
push edi
push edx
call sym._bn_expand2
add esp, 0x10
test eax, eax
jmp 0x4bc94e
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], edi
jmp 0x4bcae9
mov edx, dword [esp + 0x54]
jmp 0x4bc805
sub esp, 8
push edi
push edx
call sym._bn_expand2
add esp, 0x10
test eax, eax
jmp 0x4bc85d