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

Disassembly:
mov eax, 0x50
call fcn.0057a200
mov ecx, dword [esp + 0x5c]
xor eax, eax
push ebp
xor ebp, ebp
mov dword [esp + 0x34], 0
xor edx, edx
mov dword [esp + 0x14], 0
test ecx, ecx
mov dword [esp + 4], 0
push esi
mov esi, dword [esp + 0x60]
sete al
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
test ecx, ecx
jne 0x4a1cf8
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x14], ecx
jmp 0x4a1cfc
mov dword [esp + 0x14], edx
push ebx
mov ebx, dword [esp + 0x78]
push edi
mov dword [ebx], edx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4a1d27
push dword [esi + 0x30]
push eax
push dword [esp + 0x6c]
call fcn.004808c0
mov edi, dword [esp + 0x84]
mov edx, eax
mov dword [esp + 0x24], edx
jmp 0x4a1d84
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x4a1d42
cmp dword [esp + 0x74], 0x800
sbb edi, edi
and edi, 0xffffffa0
add edi, 0x100
cmp edi, 0xa0
jne 0x4a1d51
mov eax, str.SHA1
jmp 0x4a1d71
cmp edi, 0xe0
jne 0x4a1d60
mov eax, str.SHA_224
jmp 0x4a1d71
cmp edi, 0x100
jne 0x4a23aa
mov eax, str.SHA_256
push dword [esi + 0x30]
push eax
push dword [esp + 0x6c]
call fcn.004808c0
mov edx, eax
mov dword [esp + 0x24], eax
add esp, 0xc
test edx, edx
je 0x4a23b0
push edx
call fcn.00464600
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
jle 0x4a23b0
test edi, edi
jne 0x4a1daf
lea edi, [eax*8]
mov eax, edi
shr eax, 3
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
cmp eax, edi
jbe 0x4a23a2
push dword [esp + 0x38]
push dword [esp + 0x74]
push edi
push eax
call fcn.004a0c00
add esp, 0x10
test eax, eax
je 0x4a23a2
call fcn.00480720
mov dword [esp + 0x58], eax
test eax, eax
je 0x4a23b0
push dword [esp + 0x64]
call fcn.004bc210
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4a23b0
push ebp
call fcn.004bc2b0
push ebp
call fcn.004bc190
push ebp
mov dword [esp + 0x34], eax
call fcn.004bc190
push ebp
mov dword [esp + 0x40], eax
call fcn.004bc190
push ebp
mov dword [esp + 0x48], eax
call fcn.004bc190
push ebp
mov dword [esp + 0x74], eax
call fcn.004bc190
add esp, 0x18
mov dword [esp + 0x38], eax
test eax, eax
je 0x4a23b0
mov eax, dword [esi + 0x14]
test eax, eax
cmove eax, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
test eax, eax
cmovne ecx, eax
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x20], ecx
je 0x4a1e89
xor ecx, ecx
cmp dword [esi + 4], ecx
sete cl
xor eax, eax
cmp dword [esi], eax
sete al
cmp eax, ecx
je 0x4a1ebd
mov dword [ebx], 0x800
jmp 0x4a23b0
mov edx, dword [esp + 0x1c]
test dl, 1
je 0x4a1ea7
test ecx, ecx
je 0x4a1e9c
cmp dword [esi + 0x18], 0
jge 0x4a1ea7
mov dword [ebx], 0x200
jmp 0x4a23b0
test dl, 2
je 0x4a1ec1
cmp dword [esi + 8], 0
jne 0x4a1ec1
mov dword [ebx], 0x400
jmp 0x4a23b0
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 0x68], eax
test eax, eax
je 0x4a1ee0
test dl, 1
jne 0x4a1ee0
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
jmp 0x4a217a
push ebp
call fcn.004bc190
push ebp
mov dword [esp + 0x70], eax
call fcn.004bc190
add esp, 8
mov dword [esp + 0x7c], eax
test eax, eax
je 0x4a23b0
mov ecx, dword [esp + 0x14]
lea eax, [ecx*8]
cmp eax, edi
jae 0x4a1f19
mov dword [ebx], 0x40000
jmp 0x4a23b0
push 0x283
push str.crypto_ffc_ffc_params_generate.c
push ecx
call fcn.0045fc10
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
je 0x4a23b2
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x4a1f77
cmp dword [esp + 0x6c], edi
jne 0x4a1f57
mov dword [ebx], 0x200
mov edi, dword [esp + 0x10]
jmp 0x4a23b2
push 0x28e
push str.crypto_ffc_ffc_params_generate.c
push dword [esp + 0x1c]
call fcn.0045fc10
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
je 0x4a1f4e
cmp dword [esp + 0x6c], 0
mov edx, dword [esp + 0x74]
lea ecx, [edx*4 - 1]
mov dword [esp + 0x2c], ecx
jne 0x4a1fa7
mov eax, dword [esi + 0x18]
cmp eax, ecx
jle 0x4a1fa3
mov edi, dword [esp + 0x10]
mov dword [ebx], 0x1000
jmp 0x4a23b2
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
lea ecx, [eax*8]
lea eax, [edx - 1]
xor edx, edx
div ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x74]
dec eax
push eax
call fcn.0046eff0
push eax
push dword [esp + 0x64]
call fcn.004999f0
add esp, 0xc
test eax, eax
je 0x4a1f4e
push dword [esp + 0x80]
lea eax, [esp + 0x4c]
push ebx
push eax
xor eax, eax
cmp edi, dword [esi + 0x10]
setne al
push eax
push dword [esp + 0x24]
push edi
push dword [esp + 0x64]
push dword [esp + 0x34]
push dword [esp + 0x9c]
push ebp
call fcn.004a13a0
add esp, 0x28
test eax, eax
je 0x4a1f4e
cmp dword [esp + 0x6c], 0
jne 0x4a2039
push dword [esi + 4]
push dword [esp + 0x80]
call fcn.0046e770
add esp, 8
test eax, eax
jne 0x4a2108
push 0
push 2
push dword [esp + 0x88]
call fcn.004e1910
add esp, 0xc
test eax, eax
je 0x4a1f4e
push 0
push 3
push dword [esp + 0x88]
call fcn.004e1910
add esp, 0xc
test eax, eax
je 0x4a1f4e
push dword [esp + 0x14]
push edi
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
push ebx
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x94]
push dword [esp + 0x8c]
push dword [esp + 0x84]
push dword [esp + 0x9c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x70]
push dword [esp + 0x5c]
push dword [esp + 0x4c]
push ebp
call fcn.004a0ea0
add esp, 0x3c
test eax, eax
jg 0x4a2126
js 0x4a1f4e
cmp edi, dword [esi + 0x10]
je 0x4a2117
push dword [esp + 0x80]
lea eax, [esp + 0x4c]
push ebx
push eax
push 1
push dword [esp + 0x24]
push edi
push dword [esp + 0x64]
push dword [esp + 0x34]
push dword [esp + 0x9c]
push ebp
call fcn.004a13a0
add esp, 0x28
test eax, eax
jne 0x4a2018
mov edi, dword [esp + 0x10]
jmp 0x4a23b2
mov edi, dword [esp + 0x10]
mov dword [ebx], 0x4000
jmp 0x4a23b2
mov edi, dword [esp + 0x10]
mov dword [ebx], 1
jmp 0x4a23b2
push 1
push 2
push dword [esp + 0x88]
call fcn.004e1910
add esp, 0xc
test eax, eax
je 0x4a1f4e
cmp dword [esp + 0x6c], 0
jne 0x4a216c
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x2c]
jne 0x4a1f4e
push dword [esi]
push dword [esp + 0x6c]
call fcn.0046e770
add esp, 8
test eax, eax
jne 0x4a1f4e
mov eax, dword [esp + 0x1c]
and al, 3
cmp al, 1
je 0x4a2378
call fcn.004bb4c0
mov dword [esp + 0x24], eax
test eax, eax
je 0x4a1f4e
push ebp
push dword [esp + 0x6c]
push eax
call fcn.004bb520
add esp, 0xc
test eax, eax
je 0x4a1f4e
test byte [esp + 0x1c], 2
je 0x4a21d0
push ebx
push dword [esp + 0x3c]
push dword [esi + 8]
push dword [esp + 0x88]
push dword [esp + 0x78]
push dword [esp + 0x38]
push ebp
call fcn.004e28d0
add esp, 0x1c
test eax, eax
je 0x4a1f4e
call fcn.0046eff0
push eax
push dword [esp + 0x6c]
push dword [esp + 0x38]
call fcn.004ccb70
add esp, 0xc
test eax, eax
je 0x4a1f4e
push ebp
push dword [esp + 0x80]
push dword [esp + 0x38]
push 0
push dword [esp + 0x44]
call fcn.004ccd90
add esp, 0x14
test eax, eax
je 0x4a1f4e
test edi, edi
je 0x4a2287
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x4a2287
push dword [esp + 0x14]
mov dword [esp + 0x58], 1
push edi
push eax
push dword [esp + 0x40]
push dword [esp + 0x78]
push dword [esp + 0x4c]
push dword [esp + 0x40]
push dword [esp + 0x34]
push dword [esp + 0x44]
push ebp
call fcn.004a0ce0
add esp, 0x28
test eax, eax
jne 0x4a225e
mov edi, dword [esp + 0x10]
mov dword [ebx], 0x400
jmp 0x4a23b2
cmp dword [esp + 0x6c], 0
jne 0x4a22bf
push dword [esi + 8]
push dword [esp + 0x2c]
call fcn.0046e770
add esp, 8
test eax, eax
je 0x4a22bf
mov edi, dword [esp + 0x10]
mov dword [ebx], 0x8000
jmp 0x4a23b2
cmp dword [esp + 0x6c], 0
mov ebx, dword [esp + 0x68]
je 0x4a22c3
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x48]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebp
call fcn.004a1540
add esp, 0x20
test eax, eax
je 0x4a1f4e
jmp 0x4a22c3
mov ebx, dword [esp + 0x68]
push 1
push 3
push dword [esp + 0x88]
call fcn.004e1910
add esp, 0xc
test eax, eax
je 0x4a1f4e
cmp dword [esp + 0x6c], 0
je 0x4a2378
mov eax, dword [esi]
cmp ebx, eax
je 0x4a2300
push eax
call fcn.0046ea90
push ebx
call fcn.0046ea10
add esp, 8
mov dword [esi], eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x7c]
cmp ebx, eax
je 0x4a231d
push eax
call fcn.0046ea90
push ebx
call fcn.0046ea10
add esp, 8
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x28]
cmp ebx, eax
je 0x4a233a
push eax
call fcn.0046ea90
push ebx
call fcn.0046ea10
add esp, 8
mov dword [esi + 8], eax
cmp dword [esi], 0
je 0x4a1f4e
cmp dword [esi + 4], 0
je 0x4a1f4e
cmp dword [esi + 8], 0
je 0x4a1f4e
push dword [esp + 0x3c]
push dword [esp + 0x18]
push edi
push esi
call fcn.004a09e0
add esp, 0x10
test eax, eax
je 0x4a1f4e
mov eax, dword [esp + 0x50]
mov dword [esi + 0x24], eax
test byte [esp + 0x1c], 2
je 0x4a2394
cmp dword [esp + 0x54], 0
jne 0x4a2394
mov edi, dword [esp + 0x10]
mov dword [esp + 0x40], 2
jmp 0x4a23b2
mov edi, dword [esp + 0x10]
mov dword [esp + 0x40], 1
jmp 0x4a23b2
mov dword [ebx], 0x20000
jmp 0x4a23b0
mov dword [ebx], 0x20
xor edi, edi
mov ebx, dword [esp + 0x20]
cmp ebx, dword [esi + 0x10]
je 0x4a23ce
push 0x31a
push str.crypto_ffc_ffc_params_generate.c
push ebx
call fcn.0045fc90
add esp, 0xc
push 0x31b
push str.crypto_ffc_ffc_params_generate.c
push edi
call fcn.0045fc90
add esp, 0xc
pop edi
pop ebx
test ebp, ebp
je 0x4a23f0
push ebp
call fcn.004bc100
add esp, 4
push ebp
call fcn.004bc150
push dword [esp + 0x20]
call fcn.004bb470
push dword [esp + 0x58]
call fcn.00480690
push dword [esp + 0x1c]
call fcn.004808f0
mov eax, dword [esp + 0x48]
add esp, 0x10
pop esi
pop ebp
add esp, 0x50
ret