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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
test eax, eax
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x48], 0
mov esi, dword [ebx + 0x10]
je case.0x51671c.3
test esi, esi
je 0x516730
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x24], ecx
cmp byte [ebx], 6
ja case.0x51671c.3
mov ebp, eax
xor eax, eax
mov al, byte [ebx]
mov dword [esp + 0x20], edx
jmp dword [eax*4 + 0x74f0d4]
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0
jmp 0x51670d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x45]
lea edx, [esp + 0x4c]
mov eax, dword [eax]
mov dword [esp + 0x10], 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
xor eax, eax
mov dword [esp], 0
call fcn.005143d0
test eax, eax
je 0x516c30
cmp byte [esp + 0x45], 0
jne 0x516b50
mov eax, dword [esp + 0x4c]
cmp eax, 0x1e
ja 0x516c40
mov edx, dword [ebx + 4]
test dword [eax*4 + 0x74f160], edx
je 0x516c40
mov edi, dword [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, ebp
call fcn.00514900
jmp 0x516725
mov eax, dword [ebx + 8]
test eax, eax
je 0x516e80
cmp dword [esp + 0x74], 0xffffffff
jne 0x516ad0
mov ecx, edi
test cl, cl
jne 0x516ad0
mov edi, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x3c]
mov eax, ebp
call fcn.005162a0
jmp 0x516725
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x74], 0xffffffff
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
jne 0x516860
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x80]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, edi
movsx edi, al
mov eax, dword [esp + 0x78]
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x47]
mov dword [esp + 0x18], edi
mov dword [esp + 4], eax
lea eax, [esp + 0x46]
mov dword [esp], eax
lea eax, [esp + 0x3c]
call fcn.00514110
test eax, eax
je 0x516c20
inc eax
je 0x5170bf
test esi, esi
je 0x5168d1
test byte [esi + 4], 4
jne 0x516b90
mov al, byte [esp + 0x46]
mov byte [esp + 0x3b], al
cmp byte [esp + 0x47], 0
je 0x516c80
mov eax, dword [ebp]
test eax, eax
je 0x516bcf
mov eax, dword [esp + 0x24]
test eax, eax
je 0x51691c
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], 4
mov eax, dword [esp + 0x24]
call eax
test eax, eax
je 0x516b21
mov eax, dword [ebx + 8]
xor esi, esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x517035
mov edi, dword [esp + 0x2c]
jmp 0x516942
inc esi
add edi, 0x14
cmp esi, eax
jge 0x516cb1
test dword [edi], 0x300
je 0x516936
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.0051dba0
test eax, eax
je 0x516982
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 0x28], eax
call fcn.0051db90
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0051a4b0
mov eax, dword [ebx + 0xc]
jmp 0x516936
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5169b4
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], 4
mov eax, dword [esp + 0x24]
call eax
test eax, eax
je 0x516b21
mov eax, dword [ebp]
test eax, eax
je 0x516bb0
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0051d870
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
test eax, eax
js 0x5169dd
cmp edx, eax
jg 0x516f8a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 0
test edx, edx
mov eax, dword [eax]
mov dword [esp + 0x48], eax
jle 0x516a42
lea eax, [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0051db90
mov ecx, dword [esp + 0x80]
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.005162a0
cmp eax, 0xffffffff
je 0x516f21
test eax, eax
jle 0x516f41
mov edx, dword [ebx + 0xc]
cmp dword [esp + 0x28], edx
jne 0x516e10
mov eax, edi
test al, al
jne 0x5170b3
mov dword [esp + 0x10], 0xf9
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x8f
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], eax
mov eax, edi
movsx edi, al
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [esi + 0x10]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x9f
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0xaa
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], str.Type
mov dword [esp + 8], eax
mov dword [esp], 2
call fcn.00560d00
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x195
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x64
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov eax, edi
test al, al
jne 0x5170bf
mov dword [esp + 0x10], 0xb7
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x8b
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov byte [esp + 0x3b], 1
mov edx, dword [edi]
mov edi, dword [esp + 0x28]
sub eax, edx
sub edi, eax
mov dword [esp + 0x3c], edi
jmp 0x5168d9
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0051c7e0
test eax, eax
je 0x51706a
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
jmp 0x5169dd
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0051c7e0
test eax, eax
jne 0x5168ef
mov dword [esp + 0x10], 0x123
nop
lea esi, [esi]
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x3a
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov dword [esp + 0x10], 0x112
jmp 0x516bf0
mov dword [esp + 0x10], 0xae
jmp 0x516bf0
mov eax, edi
test al, al
jne 0x5170bf
mov dword [esp + 0x10], 0xbf
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x8c
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov dword [esp + 0x10], 0x11e
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x95
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov edi, dword [ebx + 8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
test eax, eax
jg 0x516d42
jmp 0x51703d
mov eax, dword [ebx + 0xc]
dec eax
cmp eax, dword [esp + 0x28]
je 0x516e06
mov eax, dword [esi]
and eax, 1
mov edx, dword [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
call fcn.005162a0
test eax, eax
je 0x516ef0
inc eax
je 0x516e65
mov eax, dword [esp + 0x48]
sub edi, eax
mov eax, dword [esp + 0x3c]
add eax, edi
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
inc ecx
add esi, 0x14
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x28]
cmp dword [ebx + 0xc], eax
jle 0x51703d
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0051dba0
mov esi, eax
test eax, eax
je 0x516afc
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0051db90
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x517077
mov edi, dword [esp + 0x48]
cmp ecx, 1
jle 0x516cd0
cmp byte [edi], 0
jne 0x516cd0
cmp byte [edi + 1], 0
jne 0x516cd0
add edi, 2
mov dword [esp + 0x48], edi
cmp byte [esp + 0x46], 0
je 0x517102
sub ecx, 2
mov byte [esp + 0x46], 0
mov dword [esp + 0x3c], ecx
cmp byte [esp + 0x3b], 0
jne 0x516fc7
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x516fc7
mov dword [esp + 0x10], 0x171
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x94
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
xor eax, eax
jmp 0x516ce3
mov eax, dword [esp + 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0051d890
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x516e51
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], 5
mov eax, dword [esp + 0x24]
call eax
test eax, eax
je 0x516b21
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
mov dword [edi], eax
mov eax, 1
jmp 0x516725
mov eax, dword [esp + 0x34]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0051a4b0
jmp 0x516d21
mov eax, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, edi
movsx edi, al
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x3c]
mov eax, ebp
call fcn.00514900
jmp 0x516725
mov dword [esp + 0x10], 0x185
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x79
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
mov esi, eax
mov ebx, dword [esp + 0x70]
call fcn.0055ae30
lea esi, [esi]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], str.__Type
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 4], str.Field
mov dword [esp + 8], eax
mov dword [esp], 4
call fcn.00560d00
xor eax, eax
jmp 0x516725
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 0xc]
inc eax
add esi, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
cmp edx, eax
jg 0x5169fb
jmp 0x516a42
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0051a4b0
mov dword [esp + 0x10], 0xed
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x3a
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
test esi, esi
jne 0x516ef0
jmp 0x516afc
lea eax, [eax + eax*4]
mov dword [esp], ebp
lea esi, [esi + eax*4]
mov dword [esp + 4], esi
call fcn.0051db90
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0051a4b0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebp
call fcn.0051d890
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
jmp 0x5169dd
mov eax, dword [esp + 0x28]
cmp dword [ebx + 0xc], eax
jle 0x5170c9
mov esi, eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x70], ebx
jmp 0x517012
test byte [eax], 1
je 0x516eb7
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0051db90
mov dword [esp + 4], ebx
mov dword [esp], eax
inc esi
call fcn.0051a4b0
mov eax, dword [esp + 0x70]
add edi, 0x14
cmp dword [eax + 0xc], esi
jle 0x5170c7
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.0051dba0
mov ebx, eax
test eax, eax
jne 0x516fe0
mov ebx, dword [esp + 0x70]
jmp 0x516afc
mov dword [esp + 0x28], 0
cmp byte [esp + 0x46], 0
je 0x516dbe
cmp dword [esp + 0x3c], 1
jle 0x517082
mov eax, dword [esp + 0x48]
cmp byte [eax], 0
jne 0x517082
cmp byte [eax + 1], 0
jne 0x517082
add eax, 2
mov dword [esp + 0x48], eax
jmp 0x516dbe
mov dword [esp + 0x10], 0xd6
jmp 0x516bf0
cmp byte [esp + 0x46], 0
je 0x516fc7
mov dword [esp + 0x10], 0x16c
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x89
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0051b7e0
or eax, 0xffffffff
jmp 0x516725
mov ebx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [esp + 0x48]
sub eax, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.0051da40
test eax, eax
je 0x516b21
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x516e2c
jmp 0x516e51
mov dword [esp + 0x10], 0x145
mov dword [esp + 0xc], str.crypto_asn1_tasn_dec.c
mov dword [esp + 8], 0x9f
mov dword [esp + 4], 0x78
mov dword [esp], 0xd
call fcn.0055ae30
jmp 0x516afc