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

Disassembly:
push 0xffffffffffffffff
push 0x57ae98
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14c]
mov esi, dword [esp + 0x15c]
mov ebp, dword [esp + 0x138]
mov edi, dword [esp + 0x158]
push str.padAndSignHash
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], eax
call fcn.00437740
mov ecx, edi
mov dword [esp + 0x130], 0
call fcn.00446f40
cmp byte [esi + 0x121], 0
mov ebx, dword [esp + 0x140]
je 0x4b5cb6
cmp dword [esp + 0x150], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
jne 0x4b5c1c
push str.Private
jmp 0x4b5c21
push str.Public
push str.keyType
call eax
mov ecx, dword [esp + 0x13c]
push ecx
push str.hashInSize
mov ecx, esi
call fcn.004373b0
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
cmp ebx, 1
jne 0x4b5c56
push str.PKCS_v1.5
push str.padding
call eax
jmp 0x4b5cb6
push 0x5d5d74
push str.padding
call eax
lea ecx, [esp + 0xb0]
call fcn.0042d110
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0xb0]
push ecx
push edx
mov byte [esp + 0x138], 1
call fcn.00467dc0
add esp, 8
lea eax, [esp + 0xb0]
push eax
push str.pssHashAlg
mov ecx, esi
call fcn.004370f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x130], 0
call fcn.0042d1d0
test ebp, ebp
je 0x4b6092
cmp dword [esp + 0x13c], 0
je 0x4b6092
cmp ebx, 1
je 0x4b5ce9
cmp ebx, 3
je 0x4b5ce9
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Invalid_padding_selection
mov ecx, esi
call eax
jmp 0x4b60a0
mov ecx, dword [esp + 0x18]
call fcn.004b8a40
mov ecx, dword [esp + 0x18]
add ecx, 0x98
push ecx
mov ebp, eax
call fcn.00494ae0
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.00447240
mov byte [esp + 0x130], 2
cmp ebx, 3
jne 0x4b5d79
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push esi
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x144]
push ebp
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.0052a8c0
add esp, 0x1c
test al, al
jne 0x4b5fbb
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.PSS_encoding_failed.
mov ecx, esi
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x130], 0
call fcn.004479b0
jmp 0x4b60a0
lea ecx, [esp + 0x4c]
call fcn.0047f500
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 3
call fcn.004813d0
lea ecx, [esp + 0x80]
call fcn.004e04f0
mov ebx, dword [esp + 0x144]
lea ecx, [esp + 0x80]
push ecx
push ebx
mov byte [esp + 0x138], 4
call fcn.00467f30
add esp, 8
test al, al
jne 0x4b5e5d
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.No_OID_available_for_selected_hash_algorithm
mov ecx, esi
call eax
lea ecx, [esp + 0xb0]
call fcn.0042d110
lea ecx, [esp + 0xb0]
push ecx
push ebx
mov byte [esp + 0x138], 5
call fcn.00467dc0
add esp, 8
lea edx, [esp + 0xb0]
push edx
push str.HashAlg
mov ecx, esi
call fcn.004370f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x130], 4
call fcn.0042d1d0
lea ecx, [esp + 0x80]
mov byte [esp + 0x130], 3
call fcn.004e0500
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 2
call fcn.0047f870
lea ecx, [esp + 0x30]
mov byte [esp + 0x130], 0
call fcn.004479b0
jmp 0x4b60a0
cmp byte [esi + 0x121], 0
je 0x4b5eb6
lea ecx, [esp + 0xb0]
call fcn.0042d110
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x134], 6
call fcn.004e0510
lea ecx, [esp + 0xb0]
push ecx
push str.HashOid
mov ecx, esi
call fcn.004370f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x130], 4
call fcn.0042d1d0
call fcn.00481110
mov ebx, eax
test ebx, ebx
je 0x4b5eff
mov ecx, ebx
call fcn.004813d0
lea edx, [esp + 0x80]
push edx
mov ecx, ebx
call fcn.00481e70
test al, al
jne 0x4b5eee
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_append_OID_to_ASN.1
mov ecx, esi
call edx
jmp 0x4b5e22
mov ecx, ebx
call fcn.00481400
push ebx
lea ecx, [esp + 0x50]
call fcn.0047f7a0
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00481e20
lea ecx, [esp + 0x64]
call fcn.00447240
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x138], 7
call fcn.00481ee0
add esp, 8
push esi
lea ecx, [esp + 0x34]
push ecx
push ebp
push 1
lea ecx, [esp + 0x74]
call fcn.0051d090
push eax
lea ecx, [esp + 0x78]
call fcn.00446f60
push eax
call fcn.005299c0
add esp, 0x18
test al, al
jne 0x4b5f85
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.PKCS_v1_5_failed.
mov ecx, esi
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x130], 4
call fcn.004479b0
jmp 0x4b5e22
lea ecx, [esp + 0x64]
mov byte [esp + 0x130], 4
call fcn.004479b0
lea ecx, [esp + 0x80]
mov byte [esp + 0x130], 3
call fcn.004e0500
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 2
call fcn.0047f870
mov ecx, dword [esp + 0x154]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x150]
push esi
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0051d090
push eax
lea ecx, [esp + 0x48]
call fcn.00446f60
push eax
call fcn.004b4ec0
mov bl, al
add esp, 0x1c
test bl, bl
jne 0x4b6002
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.exptmod_failed.
mov ecx, esi
call eax
cmp byte [esi + 0x121], 0
je 0x4b6034
mov ecx, edi
call fcn.0051d090
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jae 0x4b6038
mov ecx, edi
call fcn.0051d090
mov ecx, ebp
sub ecx, eax
push ecx
push str.numNullsPrepended
mov ecx, esi
call fcn.004373b0
jmp 0x4b6038
mov ebp, dword [esp + 0x28]
mov ecx, edi
call fcn.0051d090
cmp eax, ebp
jae 0x4b6069
push 1
lea edx, [esp + 0x1b]
push edx
mov ecx, edi
mov byte [esp + 0x1f], 0
call fcn.0044b780
test al, al
je 0x4b5d63
mov ecx, edi
call fcn.0051d090
cmp eax, ebp
jb 0x4b6043
lea ecx, [esp + 0x30]
mov byte [esp + 0x130], 0
call fcn.004479b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], 0xffffffff
call fcn.004377b0
mov al, bl
jmp 0x4b60b6
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Null_or_empty_input
mov ecx, esi
call edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x130], 0xffffffff
call fcn.004377b0
xor al, al
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005550b0
add esp, 0x120
ret