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

Disassembly:
mov ecx, dword [0x776294]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xf0]
cmp eax, dword [ecx + 8]
jbe 0x51accf
sub esp, 0x170
mov ecx, dword [esp + 0x174]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x28]
mov ebp, dword [ecx + 0x2c]
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.0046ab93
mov ecx, dword [esp + 0x174]
mov dword [esp + 0x6c], ecx
mov esi, dword [ecx + 0x98]
mov edi, dword [ecx + 0x9c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov esi, ecx
lea ecx, [0x635e94]
mov dword [esp + 0x78], ecx
lea ecx, [0x776160]
mov dword [esp + 0x7c], ecx
lea ecx, [0x5ed08f]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 4
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
lea edi, [esp + 0xa4]
mov edx, esi
lea esi, [esp + 0x6c]
call fcn.0046b02e
xor ecx, ecx
jmp 0x51a14e
xor eax, eax
mov edx, dword [esp + 0x174]
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0xc8]
test ebx, ebx
je 0x51a2ae
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.unitLength
mov eax, dword [esp + 4]
nop
test eax, eax
jl 0x51a188
mov ecx, dword [esp + 0xc8]
cmp ecx, eax
jge 0x51a25c
mov ecx, dword [esp + 0xd0]
nop
test ecx, ecx
je 0x51a19b
test eax, eax
jmp 0x51a297
mov dword [esp + 0x28], eax
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0x13c]
xor eax, eax
call fcn.0046ab9b
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], edx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x144], ecx
lea ecx, [0x5ee438]
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0x13c]
call fcn.0046b07e
lea ecx, [0x5d8bc0]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634be4]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jmp 0x51a297
mov edx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xcc]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
add edx, ebx
sub ecx, eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc4], edx
add dword [esp + 0xc0], eax
test eax, eax
jbe 0x51a2a5
mov edx, dword [esp + 0x20]
lea ecx, [edx + 1]
jmp 0x51a145
mov ecx, dword [esp + 0x20]
jmp 0x51a145
mov ebx, dword [esp + 0xd0]
test ebx, ebx
jne 0x51a36e
mov ebx, dword [edx + 0x24]
mov ebp, dword [edx + 0x28]
mov esi, dword [edx + 0x2c]
lea edi, [esp + 0x38]
call fcn.0046ab93
mov dword [esp + 0x38], edx
mov ecx, dword [edx + 0x98]
mov edi, dword [edx + 0x9c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
lea ecx, [0x635e94]
mov dword [esp + 0x44], ecx
lea ecx, [0x776160]
mov dword [esp + 0x48], ecx
lea ecx, [0x5ed08f]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea edi, [esp + 0xa4]
lea esi, [esp + 0x38]
call fcn.0046b02e
lea ecx, [0x5df5c0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call sym.runtime.makeslice
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x16c], ecx
mov edx, dword [esp + 0x20]
xor eax, eax
jmp 0x51a3bc
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], ebx
mov dword [esp + 0x188], eax
add esp, 0x170
ret
mov dword [ebx + ecx*4 + 8], eax
mov ebp, dword [esp + 0x2c]
lea eax, [ebp + 1]
mov edx, dword [esp + 0x20]
mov ecx, ebx
cmp eax, edx
jge 0x51aac6
lea ebx, [eax + eax*8]
mov ebp, dword [esp + 0xc0]
mov dword [ecx + ebx*4], ebp
mov ebp, dword [esp + 0xd0]
test ebp, ebp
jne 0x51aa89
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebx
xor ebp, ebp
jmp 0x51ab7f
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xa4]
mov dword [esp], ecx
call sym.debug_dwarf._buf_.uint16
movzx eax, word [esp + 4]
lea ecx, [eax - 2]
cmp cx, 3
ja 0x51abb5
mov word [esp + 0x1e], ax
movzx ecx, ax
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
mov dword [ebx + edx*4 + 0x1c], ecx
cmp ax, 5
jb 0x51a6a1
mov ecx, dword [esp + 0xc8]
test ecx, ecx
jne 0x51a528
mov ecx, dword [esp + 0xd0]
nop
test ecx, ecx
jne 0x51a524
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0x114]
xor eax, eax
call fcn.0046ab9b
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], edx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x11c], ecx
lea ecx, [0x5ee438]
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0x114]
call fcn.0046b07e
lea ecx, [0x5d8bc0]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634be4]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
movzx eax, word [esp + 0x1e]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
xor ebp, ebp
jmp 0x51a568
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0xcc]
dec esi
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
add esi, ebp
dec ecx
movzx ebp, byte [ebp]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc4], esi
inc dword [esp + 0xc0]
lea ecx, [ebx + edx*4 + 0x20]
xchg ebp, eax
mov byte [ecx], al
xchg ebp, eax
mov ecx, dword [esp + 0xc8]
test ecx, ecx
jne 0x51a658
mov ecx, dword [esp + 0xd0]
nop
test ecx, ecx
jne 0x51a654
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0x100]
xor eax, eax
call fcn.0046ab9b
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], edx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x108], ecx
lea ecx, [0x5ee438]
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0x100]
call fcn.0046b07e
lea ecx, [0x5d8bc0]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634be4]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
movzx eax, word [esp + 0x1e]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
xor ebp, ebp
jmp 0x51a698
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0xcc]
dec esi
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
add esi, ebp
dec ecx
movzx ebp, byte [ebp]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc4], esi
inc dword [esp + 0xc0]
xchg ebp, eax
movzx ecx, al
xchg ebp, eax
mov dword [ebx + edx*4 + 0x18], ecx
lea ecx, [ebx + edx*4 + 0x21]
mov dword [esp + 0x164], ecx
movzx ebp, byte [ecx]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x51a6ce
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint64
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
jmp 0x51a6e3
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint32
mov eax, dword [esp + 4]
xor ecx, ecx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
mov ebp, dword [ebx + edx*4 + 0x1c]
mov esi, dword [esp + 0x174]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call sym.debug_dwarf._Data_.parseAbbrev
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x51ab88
mov ecx, dword [0x776350]
mov edx, dword [esp + 0x10]
test ecx, ecx
jne 0x51a73d
movzx ecx, word [esp + 0x1e]
cmp cx, 5
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
jmp 0x51a75f
call sym.runtime.gcWriteBarrier2
mov dword [edi], edx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
mov ebp, dword [ebx + ecx*4 + 0x14]
mov dword [edi + 4], ebp
movzx ebp, word [esp + 0x1e]
cmp bp, 5
mov dword [ebx + ecx*4 + 0x14], edx
jae 0x51a891
mov edx, dword [esp + 0xc8]
test edx, edx
jne 0x51a84c
mov edx, dword [esp + 0xd0]
nop
test edx, edx
jne 0x51a848
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0xec]
xor eax, eax
call fcn.0046ab9b
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], edx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xf4], ecx
lea ecx, [0x5ee438]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0xec]
call fcn.0046b07e
lea ecx, [0x5d8bc0]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634be4]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
xor ebp, ebp
jmp 0x51a888
mov ebp, dword [esp + 0xc4]
mov eax, dword [esp + 0xcc]
dec eax
mov esi, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ebp
dec edx
movzx ebp, byte [ebp]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc4], eax
inc dword [esp + 0xc0]
xchg ebp, eax
movzx edx, al
xchg ebp, eax
mov dword [ebx + ecx*4 + 0x18], edx
lea edx, [ebx + ecx*4 + 0x20]
movzx edx, byte [edx]
cmp dl, 2
je 0x51a8ca
lea ebp, [edx - 4]
xchg ebp, eax
cmp al, 1
xchg ebp, eax
jbe 0x51a8ae
cmp dl, 6
jne 0x51a912
jmp 0x51a8ca
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint64
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
jmp 0x51a912
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint64
mov eax, dword [esp + 0x164]
movzx eax, byte [eax]
test al, al
je 0x51a8f8
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint64
jmp 0x51a907
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint32
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
mov edx, dword [esp + 0xc0]
mov dword [ebx + ecx*4 + 4], edx
mov edx, dword [esp + 0xc0]
mov ebp, dword [esp + 0x30]
sub edx, ebp
mov ebp, dword [esp + 0x24]
sub ebp, edx
test ebp, ebp
jl 0x51a943
mov edx, dword [esp + 0xc8]
cmp edx, ebp
jge 0x51aa1b
mov edx, dword [esp + 0xd0]
nop
test edx, edx
jne 0x51aa13
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.0046ab9b
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], edx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xe0], ecx
lea ecx, [0x5ee438]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0xd8]
call fcn.0046b07e
lea ecx, [0x5d8bc0]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634be4]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
xor edi, edi
xor ebp, ebp
xor eax, eax
jmp 0x51aa60
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xcc]
mov edi, esi
sub esi, ebp
mov dword [esp + 0x34], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ebp
add esi, eax
sub edx, ebp
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xc4], esi
add dword [esp + 0xc0], ebp
mov dword [ebx + ecx*4 + 0xc], ebp
mov dword [ebx + ecx*4 + 0x10], edi
mov edx, dword [0x776350]
test edx, edx
je 0x51a3ab
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov edx, dword [ebx + ecx*4 + 8]
mov dword [edi + 4], edx
jmp 0x51a3ab
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], ebp
mov dword [esp + 0x188], eax
add esp, 0x170
ret
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x51ab0e
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], ecx
add esp, 0x170
ret
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], edx
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0
add esp, 0x170
ret
lea eax, [ecx + ebx*4 + 0x21]
mov dword [esp + 0x168], eax
lea edx, [esp + 0xa4]
mov dword [esp], edx
call sym.debug_dwarf._buf_.unitLength
movzx eax, byte [esp + 8]
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 0x168]
mov byte [ecx], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
test ebp, ebp
je 0x51ab40
jmp 0x51a3ef
mov ecx, dword [esp + 0xd0]
test ecx, ecx
jne 0x51aba5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x20]
jmp 0x51aac6
movzx eax, ax
mov ecx, eax
sar eax, 0x1f
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call sym.strconv.FormatInt
mov dword [esp], 0
lea eax, [0x5f5278]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1a
call sym.runtime.concatstring2
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x51acbf
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa0], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0x128]
xor eax, eax
call fcn.0046ab9b
mov ecx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], ebx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x130], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x134], ecx
mov dword [esp + 0x138], edx
lea edi, [esp + 0x150]
lea esi, [esp + 0x128]
call fcn.0046b07e
lea ecx, [0x5d8bc0]
mov dword [esp], ecx
lea ecx, [esp + 0x150]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634be4]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x20]
jmp 0x51aac6
call sym.runtime.morestack_noctxt
jmp sym.debug_dwarf._Data_.parseUnits