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

Disassembly:
mov ecx, dword [0x7762b4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xf0]
cmp eax, dword [ecx + 8]
jbe 0x51afef
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.0046ac53
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, [0x635fe4]
mov dword [esp + 0x78], ecx
lea ecx, [0x776180]
mov dword [esp + 0x7c], ecx
lea ecx, [0x5ed12f]
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.0046b0ee
xor ecx, ecx
jmp 0x51a46e
xor eax, eax
mov edx, dword [esp + 0x174]
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0xc8]
test ebx, ebx
je 0x51a5ce
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.unitLength
mov eax, dword [esp + 4]
nop
test eax, eax
jl 0x51a4a8
mov ecx, dword [esp + 0xc8]
cmp ecx, eax
jge 0x51a57c
mov ecx, dword [esp + 0xd0]
nop
test ecx, ecx
je 0x51a4bb
test eax, eax
jmp 0x51a5b7
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.0046ac5b
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, [0x5ee4e8]
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0x13c]
call fcn.0046b13e
lea ecx, [0x5d8c60]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634d34]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jmp 0x51a5b7
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 0x51a5c5
mov edx, dword [esp + 0x20]
lea ecx, [edx + 1]
jmp 0x51a465
mov ecx, dword [esp + 0x20]
jmp 0x51a465
mov ebx, dword [esp + 0xd0]
test ebx, ebx
jne 0x51a68e
mov ebx, dword [edx + 0x24]
mov ebp, dword [edx + 0x28]
mov esi, dword [edx + 0x2c]
lea edi, [esp + 0x38]
call fcn.0046ac53
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, [0x635fe4]
mov dword [esp + 0x44], ecx
lea ecx, [0x776180]
mov dword [esp + 0x48], ecx
lea ecx, [0x5ed12f]
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.0046b0ee
lea ecx, [0x5df660]
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 0x51a6dc
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 0x51ade6
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 0x51ada9
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebx
xor ebp, ebp
jmp 0x51ae9f
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 0x51aed5
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 0x51a9c1
mov ecx, dword [esp + 0xc8]
test ecx, ecx
jne 0x51a848
mov ecx, dword [esp + 0xd0]
nop
test ecx, ecx
jne 0x51a844
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0x114]
xor eax, eax
call fcn.0046ac5b
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, [0x5ee4e8]
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0x114]
call fcn.0046b13e
lea ecx, [0x5d8c60]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634d34]
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 0x51a888
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 0x51a978
mov ecx, dword [esp + 0xd0]
nop
test ecx, ecx
jne 0x51a974
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0x100]
xor eax, eax
call fcn.0046ac5b
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, [0x5ee4e8]
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0x100]
call fcn.0046b13e
lea ecx, [0x5d8c60]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634d34]
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 0x51a9b8
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 0x51a9ee
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 0x51aa03
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 0x51aea8
mov ecx, dword [0x776370]
mov edx, dword [esp + 0x10]
test ecx, ecx
jne 0x51aa5d
movzx ecx, word [esp + 0x1e]
cmp cx, 5
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
jmp 0x51aa7f
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 0x51abb1
mov edx, dword [esp + 0xc8]
test edx, edx
jne 0x51ab6c
mov edx, dword [esp + 0xd0]
nop
test edx, edx
jne 0x51ab68
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0xec]
xor eax, eax
call fcn.0046ac5b
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, [0x5ee4e8]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0xec]
call fcn.0046b13e
lea ecx, [0x5d8c60]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634d34]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x16c]
xor ebp, ebp
jmp 0x51aba8
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 0x51abea
lea ebp, [edx - 4]
xchg ebp, eax
cmp al, 1
xchg ebp, eax
jbe 0x51abce
cmp dl, 6
jne 0x51ac32
jmp 0x51abea
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 0x51ac32
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 0x51ac18
lea eax, [esp + 0xa4]
mov dword [esp], eax
call sym.debug_dwarf._buf_.uint64
jmp 0x51ac27
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 0x51ac63
mov edx, dword [esp + 0xc8]
cmp edx, ebp
jge 0x51ad3b
mov edx, dword [esp + 0xd0]
nop
test edx, edx
jne 0x51ad33
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc4], 0
lea edi, [esp + 0xd8]
xor eax, eax
call fcn.0046ac5b
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, [0x5ee4e8]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], 9
lea edi, [esp + 0x150]
lea esi, [esp + 0xd8]
call fcn.0046b13e
lea ecx, [0x5d8c60]
mov dword [esp], ecx
lea edx, [esp + 0x150]
mov dword [esp + 4], edx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634d34]
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 0x51ad80
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 [0x776370]
test edx, edx
je 0x51a6cb
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov edx, dword [ebx + ecx*4 + 8]
mov dword [edi + 4], edx
jmp 0x51a6cb
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 0x51ae2e
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 0x51ae60
jmp 0x51a70f
mov ecx, dword [esp + 0xd0]
test ecx, ecx
jne 0x51aec5
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 0x51ade6
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, [0x5f531f]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1a
call sym.runtime.concatstring2
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x51afdf
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.0046ac5b
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.0046b13e
lea ecx, [0x5d8c60]
mov dword [esp], ecx
lea ecx, [esp + 0x150]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x634d34]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x20]
jmp 0x51ade6
call sym.runtime.morestack_noctxt
jmp sym.debug_dwarf._Data_.parseUnits