Function at 0x410b10
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5940c6
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x170], edi
mov eax, dword [edi + 0x90]
xor ecx, ecx
mov edx, dword [edi + 0x94]
test eax, eax
mov dword [edi + 0x10], edx
cmovle eax, ecx
lea ecx, [edi + 0xf8]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x18]
push eax
push ecx
call fcn.00412270
lea eax, [edi + 0x14]
lea ecx, [edi + 0xd8]
push eax
push ecx
call fcn.00412270
mov eax, dword [edi + 0xd0]
xor edx, edx
mov ecx, dword [edi + 0xd4]
add esp, 0x10
test eax, eax
mov dword [edi + 0x28], ecx
cmovle eax, edx
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0xc4]
test eax, eax
mov ecx, dword [edi + 0xc8]
cmovle eax, edx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0xac]
test eax, eax
mov ecx, dword [edi + 0xb0]
cmovle eax, edx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x90]
mov ecx, eax
mov ebx, dword [edi + 0x94]
test eax, eax
push edx
cmovle ecx, edx
mov dword [ebp - 0x160], ecx
xor ecx, ecx
test eax, eax
cmovle eax, ecx
lea ecx, [ebp - 0x17c]
push eax
call fcn.00410150
mov ecx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x17c]
add eax, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x16c], eax
lea eax, [edi + 0x154]
push eax
push ecx
lea eax, [ebp - 0x16c]
push eax
call fcn.004f4a00
add esp, 0xc
test eax, eax
js 0x410f20
mov ecx, dword [ebp - 0x160]
xor edx, edx
test eax, eax
cmovg edx, eax
xor eax, eax
sub ecx, edx
mov dword [ebp - 0x15c], edx
inc ecx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], ecx
test ecx, ecx
jle 0x410ceb
xor esi, esi
mov ecx, edx
test edx, edx
cmovle ecx, esi
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0x168], ecx
cmp ecx, edx
jne 0x410cdf
mov eax, dword [ebp - 0x16c]
mov esi, ecx
mov edx, ebx
sub esi, 4
jb 0x410c95
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x410c9a
add edx, 4
add eax, 4
sub esi, 4
jae 0x410c84
cmp esi, 0xfffffffc
je 0x410cf5
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x410cc7
cmp esi, 0xfffffffd
je 0x410cf5
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x410cc7
cmp esi, 0xfffffffe
je 0x410cf5
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x410cc7
cmp esi, 0xffffffff
je 0x410cf5
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x410cf5
mov esi, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x164]
inc eax
inc ebx
mov dword [ebp - 0x164], eax
cmp eax, esi
jl 0x410c71
push str.key_not_substring
jmp 0x410f02
mov eax, dword [ebp - 0x168]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ebx
cmp byte [ebp - 0x174], 0
mov esi, dword [ebp - 0x178]
mov dword [ebp - 4], 1
je 0x410d2a
test esi, esi
je 0x410d2a
push dword [ebp - 0x17c]
push esi
call fcn.0045fa10
add esp, 8
push esi
call fcn.0054454b
lea eax, [edi + 0x48]
mov dword [ebp - 4], 0xffffffff
push eax
lea eax, [edi + 0xf8]
push eax
call fcn.00410970
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0xd8]
push eax
call fcn.00410970
lea eax, [edi + 0x118]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.00413550
add esp, 0x1c
test al, al
je 0x410f00
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x68]
push eax
call fcn.00413550
add esp, 8
test al, al
je 0x410f00
mov eax, dword [edi + 0x1a0]
test al, 4
je 0x410e0b
mov cl, byte [edi + 0x1ac]
mov al, cl
mov byte [edi + 0x74], 1
mov dl, cl
add al, al
shr dl, 1
add cl, cl
xor dl, al
and dl, 0x55
xor dl, cl
mov cl, byte [edi + 0x1ad]
mov al, dl
mov bl, dl
shl al, 2
shr bl, 2
xor bl, al
shl dl, 2
mov al, cl
and bl, 0x33
xor bl, dl
add al, al
mov dl, cl
rol bl, 4
add cl, cl
shr dl, 1
xor dl, al
and dl, 0x55
xor dl, cl
mov cl, dl
mov al, dl
shr cl, 2
shl al, 2
xor cl, al
shl dl, 2
and cl, 0x33
movzx eax, bl
xor cl, dl
rol cl, 4
movzx ecx, cl
shl ecx, 8
or ecx, eax
mov eax, dword [edi + 0x1a0]
mov dword [edi + 0x70], ecx
test eax, 0x800
je 0x410ea6
lea ebx, [edi + 0x1b0]
mov byte [edi + 0x75], 1
test ebx, ebx
je 0x410ea6
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.00411290
add esp, 8
mov esi, dword [ebp - 0x15c]
mov dword [ebp - 4], 2
test esi, esi
je 0x410e8f
mov eax, dword [edi + 0x7c]
mov dword [ebp - 0x16c], eax
cmp dword [edi + 0x80], eax
je 0x410e73
push 0xffffffffffffffff
push esi
call fcn.00448d00
mov ecx, dword [ebp - 0x16c]
add esp, 8
mov dword [ecx], eax
add dword [edi + 0x7c], 4
jmp 0x410e89
lea ecx, [ebp - 0x15c]
push ecx
push eax
lea ecx, [edi + 0x78]
call fcn.0040d070
mov esi, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x170]
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0054454b
mov ebx, dword [ebx + 0xc]
add esp, 4
test ebx, ebx
jne 0x410e28
lea eax, [edi + 0x54]
push eax
lea eax, [edi + 0x174]
push eax
call fcn.004125e0
lea eax, [edi + 0x154]
push eax
call fcn.004f4200
add esp, 0xc
cmp eax, 1
jne 0x410eed
mov dword [edi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x410ef7
cmp eax, 4
jne 0x410ed1
mov dword [edi + 8], 1
jmp 0x410ed1
push 0
push 0
lea ecx, [ebp - 0x158]
call fcn.0040e3f0
push 0x5f59f8
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
push eax
push str.mbedtls_pk_write_pubkey
lea ecx, [ebp - 0x158]
call fcn.004791b0
push 0x5f5e50
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3