Function at 0x4aaf30
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 0x4aafd0
sub esp, 0xc
push 0x252
push str..crypto_bn_bn_exp.c
push 0x66
push 0x7c
push 3
call fcn.0045d0e0
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 fcn.00476720
mov dword [esp + 0x50], eax
add esp, 0x10
test eax, eax
jne 0x4ab010
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 fcn.004772a0
sub esp, 0xc
mov ebx, dword [esp + 0x58]
push ebx
call fcn.00478d30
pop ebp
mov edx, dword [esp + 0x58]
push edx
call fcn.00478f50
add esp, 0x10
test eax, eax
mov ebp, eax
je 0x4ab560
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x4ab60e
cmp dword [esp + 0x40], 0x3a9
mov dword [esp + 0xc], 6
jg 0x4ab070
cmp dword [esp + 0x40], 0x132
mov dword [esp + 0xc], 5
jle 0x4ab5e0
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 fcn.00457fd0
mov dword [esp + 0x38], eax
add esp, 0x10
test eax, eax
je 0x4ab560
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 sub.msvcrt.dll_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 fcn.00476660
pop edx
pop ecx
push eax
push ebp
call fcn.004aa490
add esp, 0x20
test eax, eax
je 0x4ab560
cmp dword [ebp + 8], edi
jl 0x4ab658
test ebp, ebp
je 0x4ab560
mov eax, dword [ebp + 4]
cmp eax, edi
jge 0x4ab144
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 0x4ab130
mov dword [ebp + 4], eax
lea ebx, [edi*4]
xor edx, edx
xor ecx, ecx
cmp ebx, 0
mov dword [esp + 8], ebx
jbe 0x4ab17b
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 0x4ab160
mov eax, dword [ebp + 4]
test eax, eax
mov ecx, eax
jle 0x4ab1a5
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 0x4ab1a5
lea eax, [ecx - 1]
test eax, eax
mov dword [ebp + 4], eax
mov ecx, eax
jg 0x4ab190
sub esp, 0xc
mov ebx, dword [esp + 0x58]
push ebx
call fcn.00478f50
mov dword [esp + 0x2c], eax
pop eax
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00478f50
mov dword [esp + 0x28], eax
add esp, 0x10
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4ab560
test eax, eax
je 0x4ab560
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x4ab1fc
sub esp, 8
push esi
push eax
call fcn.004775f0
add esp, 0x10
test eax, eax
js 0x4ab6a0
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 fcn.004d4630
add esp, 0x20
test eax, eax
mov edx, dword [esp + 0x18]
je 0x4ab560
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 fcn.004aa490
add esp, 0x20
test eax, eax
je 0x4ab560
sub esp, 8
mov ebx, dword [esp + 0x20]
push ebx
mov edx, dword [esp + 0x28]
push edx
call fcn.00476ab0
add esp, 0x10
test eax, eax
je 0x4ab560
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], edi
jl 0x4ab6a9
cmp dword [esp + 0x18], 0
je 0x4ab560
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
cmp eax, edi
jge 0x4ab2aa
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 0x4ab292
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
lea ebx, [edi*4]
xor edx, edx
cmp ebx, 0
mov ecx, 1
jbe 0x4ab2dd
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 0x4ab2bd
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
test eax, eax
mov ecx, eax
jle 0x4ab306
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
lea edx, [eax + ecx*4 - 4]
mov esi, dword [edx]
sub edx, 4
test esi, esi
jne 0x4ab306
lea eax, [ecx - 1]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov ecx, eax
jg 0x4ab2ed
cmp dword [esp + 0xc], 1
jle 0x4ab3fd
mov dword [esp + 0x44], 2
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x44], edx
jge 0x4ab3fd
lea esi, [edi*4]
sub esp, 0xc
mov ebx, dword [esp + 0x58]
push ebx
mov edx, dword [esp + 0x40]
push edx
mov ecx, dword [esp + 0x30]
push ecx
mov eax, dword [esp + 0x30]
push eax
mov ebx, dword [esp + 0x38]
push ebx
call fcn.004aa490
add esp, 0x20
test eax, eax
je 0x4ab560
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], edi
jl 0x4ab680
cmp dword [esp + 0x1c], 0
je 0x4ab560
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
cmp edx, edi
jge 0x4ab39a
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 0x4ab382
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
xor ebx, ebx
cmp esi, 0
mov ecx, dword [esp + 0x44]
jbe 0x4ab3c5
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 0x4ab3a5
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
test edx, edx
jle 0x4ab3eb
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 0x4ab3eb
mov eax, edx
mov ebx, dword [esp + 0x1c]
mov dword [ebx + 4], edx
dec edx
test eax, eax
jg 0x4ab3d4
inc dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x44], edx
jl 0x4ab32e
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 0x4ab535
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 0x4ab483
sub esp, 0xc
mov ecx, dword [esp + 0x58]
push ecx
mov edx, dword [esp + 0x40]
push edx
push ebp
push ebp
push ebp
call fcn.004aa490
add esp, 0x20
test eax, eax
je 0x4ab560
mov ebx, dword [esp + 0x34]
sub esp, 8
mov edx, dword [esp + 0x40]
push edx
mov eax, dword [esp + 0x5c]
push eax
call fcn.004777f0
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 0x4ab437
mov edx, dword [esp + 0x1c]
cmp dword [edx + 8], edi
jl 0x4ab66c
cmp dword [esp + 0x1c], 0
je 0x4ab560
xor ebx, ebx
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x10], 0
jmp 0x4ab4c9
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 0x4ab4b0
test edi, edi
mov ebx, edi
mov ecx, edi
jle 0x4ab694
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
lea edx, [esi + edi*4 - 4]
jmp 0x4ab4f0
mov eax, dword [edx]
sub edx, 4
test eax, eax
jne 0x4ab502
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, ebx
jg 0x4ab4f0
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 fcn.004aa490
add esp, 0x20
test eax, eax
je 0x4ab560
mov ecx, dword [esp + 0x38]
test ecx, ecx
jns 0x4ab425
mov edx, dword [esp + 0x4c]
push edx
mov esi, dword [esp + 0x34]
push esi
push ebp
mov edi, dword [esp + 0x64]
push edi
call fcn.004aa190
add esp, 0x10
test eax, eax
je 0x4ab560
mov dword [esp + 0x3c], 1
lea esi, [esi]
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x4ab637
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4ab594
sub esp, 8
mov edx, dword [esp + 0x2c]
push edx
mov esi, dword [esp + 0x2c]
push esi
call fcn.0046f980
pop eax
mov edi, dword [esp + 0x34]
push edi
call fcn.004582e0
add esp, 0x10
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4ab5ac
sub esp, 0xc
mov eax, dword [esp + 0x24]
push eax
call fcn.00477210
add esp, 0x10
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4ab5c4
sub esp, 0xc
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00477210
add esp, 0x10
sub esp, 0xc
mov edi, dword [esp + 0x58]
push edi
call fcn.00478ca0
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 0x4ab070
cmp dword [esp + 0x40], 0x17
setge bl
and ebx, 0xff
lea eax, [ebx + ebx + 1]
mov dword [esp + 0xc], eax
jmp 0x4ab070
call fcn.004aa560
test eax, eax
mov dword [esp + 0x30], eax
je 0x4ab56c
push ecx
mov edx, dword [esp + 0x50]
push edx
push esi
push eax
call fcn.004aa610
add esp, 0x10
test eax, eax
jne 0x4ab045
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ab56c
sub esp, 0xc
mov ebx, dword [esp + 0x3c]
push ebx
call fcn.004aa5c0
add esp, 0x10
jmp 0x4ab56c
sub esp, 8
push edi
push ebp
call fcn.00476920
add esp, 0x10
test eax, eax
jmp 0x4ab10f
sub esp, 8
push edi
push edx
call fcn.00476920
add esp, 0x10
test eax, eax
jmp 0x4ab495
sub esp, 8
push edi
push edx
call fcn.00476920
add esp, 0x10
test eax, eax
jmp 0x4ab36c
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], edi
jmp 0x4ab509
mov edx, dword [esp + 0x54]
jmp 0x4ab225
sub esp, 8
push edi
push edx
call fcn.00476920
add esp, 0x10
test eax, eax
jmp 0x4ab27c