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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x504d26
sub esp, 0x80
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
mov ebx, dword [eax + 0x3c]
mov ebp, dword [eax + 0x48]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call dbg.encoding/asn1.BitString.RightAlign
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x84]
cmp ebx, 1
je 0x5049c4
cmp ebx, 2
je 0x504573
cmp ebx, 3
jne 0x504540
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 0x38]
mov dword [esp + 0x30], eax
lea ebx, [0x613800]
mov dword [esp], ebx
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
lea ecx, [0x6119a0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call dbg.encoding/asn1.Unmarshal
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x504515
test eax, eax
je 0x5042e9
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2a
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x5042cd
lea ecx, [0x65278a]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x65278a]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x50429c
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call dbg.crypto/x509.namedCurveFromOID
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x50449d
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
call dbg.crypto/elliptic.Unmarshal
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x504425
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
lea eax, [0x6346e0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x68]
mov dword [eax], ecx
mov ecx, dword [0x79b700]
lea edx, [eax + 4]
test ecx, ecx
jne 0x50440c
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
test byte [eax], al
mov ecx, dword [0x79b700]
lea edx, [eax + 8]
lea ebx, [eax + 0xc]
test ecx, ecx
jne 0x5043de
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
lea ecx, [0x62b800]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x80
ret
mov dword [esp + 0x74], ebx
mov dword [esp], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x4c]
jmp 0x5043ad
mov dword [esp], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x4c]
jmp 0x50438d
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504481
lea ecx, [0x65356d]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x65356d]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x504450
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x5044f9
lea ecx, [0x64f99e]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x64f99e]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x5044c8
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x80
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x80
ret
lea eax, [0x644460]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
lea ecx, [0x5e8260]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call dbg.encoding/asn1.Unmarshal
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x504999
test eax, eax
je 0x504643
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504627
lea ecx, [0x651eff]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x651eff]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x5045f6
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0x38]
mov dword [esp + 0x34], eax
lea ebx, [0x61d8e0]
mov dword [esp], ebx
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
lea ecx, [0x5ec620]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call dbg.encoding/asn1.Unmarshal
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x50496e
test eax, eax
jne 0x5048f6
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5048db
xor ecx, ecx
test ecx, ecx
jg 0x50474a
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x24
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x50472e
lea ecx, [0x650eee]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x650eee]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x5046fd
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x5048c0
xor edx, edx
test edx, edx
jle 0x5046d2
mov edx, dword [ecx + 4]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x5048a5
xor edx, edx
test edx, edx
jle 0x5046d2
mov edx, dword [ecx + 8]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x50488a
xor edx, edx
test edx, edx
jle 0x5046d2
lea eax, [0x6149e0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [0x79b700]
mov ebx, dword [esp + 4]
mov dword [esp + 0x50], ebx
test edx, edx
jne 0x504871
mov dword [ebx], ecx
test byte [ebx], al
mov ecx, dword [eax + 4]
mov edx, dword [0x79b700]
lea ebp, [ebx + 4]
test edx, edx
jne 0x504858
mov dword [ebx + 4], ecx
mov ecx, dword [0x79b700]
mov eax, dword [eax + 8]
lea edx, [ebx + 8]
test ecx, ecx
jne 0x504846
mov dword [ebx + 8], eax
mov eax, dword [0x79b700]
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx]
lea edx, [ebx + 0xc]
test eax, eax
jne 0x504834
mov dword [ebx + 0xc], ecx
lea eax, [0x5ebbe0]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x80
ret
mov dword [esp], edx
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov ebx, dword [esp + 0x50]
jmp 0x504803
mov dword [esp], edx
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov ebx, dword [esp + 0x50]
jmp 0x5047ed
mov dword [esp], ebp
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x50]
jmp 0x5047da
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x50]
jmp 0x5047c1
movzx edx, byte [edx]
test dl, dl
je 0x50489b
mov edx, 0xffffffff
jmp 0x50478d
mov edx, 1
jmp 0x50478d
movzx edx, byte [edx]
test dl, dl
je 0x5048b6
mov edx, 0xffffffff
jmp 0x504775
mov edx, 1
jmp 0x504775
movzx edx, byte [edx]
test dl, dl
je 0x5048d1
mov edx, 0xffffffff
jmp 0x50475d
mov edx, 1
jmp 0x50475d
movzx ecx, byte [ecx]
test cl, cl
je 0x5048ec
mov ecx, 0xffffffff
jmp 0x5046ce
mov ecx, 1
jmp 0x5046ce
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504952
lea ecx, [0x651ed7]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x651ed7]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x504921
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x80
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x80
ret
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [0x7837e0]
mov ecx, dword [0x7837dc]
mov edx, dword [0x7837d8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call dbg.bytes.Equal
movzx eax, byte [esp + 0x18]
test al, al
je 0x504cae
lea eax, [0x615220]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
lea ecx, [0x5ec760]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call dbg.encoding/asn1.Unmarshal
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x504c83
test eax, eax
jne 0x504c0b
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x504bf0
xor ecx, ecx
test ecx, ecx
jle 0x504b78
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x504b05
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x32
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504ae9
lea ecx, [0x6542d7]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x6542d7]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x504ab8
lea eax, [0x614b00]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 4]
mov dword [edx + 4], ecx
test byte [edx], al
mov eax, dword [eax]
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504b62
mov dword [edx], eax
lea eax, [0x5ebda0]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x80
ret
mov dword [esp + 0x48], edx
mov dword [esp], edx
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov edx, dword [esp + 0x48]
jmp 0x504b31
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2a
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504bd4
lea ecx, [0x652760]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x652760]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x504ba3
movzx ecx, byte [ecx]
test cl, cl
je 0x504c01
mov ecx, 0xffffffff
jmp 0x504a7e
mov ecx, 1
jmp 0x504a7e
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504c67
lea ecx, [0x651f27]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x651f27]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x504c36
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
add esp, 0x80
ret
lea eax, [0x60f6c0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x25
mov ecx, dword [0x79b700]
test ecx, ecx
jne 0x504d0a
lea ecx, [0x6512f9]
mov dword [eax], ecx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
lea ecx, [0x757cf0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x78], eax
mov dword [esp], eax
lea ecx, [0x6512f9]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x78]
jmp 0x504cd9
call dbg.runtime.morestack_noctxt
jmp dbg.crypto/x509.parsePublicKey