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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x405ca2
sub esp, 0x70
mov eax, dword [esp + 0x74]
test eax, eax
je 0x405c83
movzx ecx, byte [eax + 0x188024]
test cl, cl
je 0x4058b4
mov ecx, dword [eax + 0x18801c]
test ecx, ecx
je 0x40585b
test ecx, 0x80000000
jne 0x405c66
lea edx, [eax + 0x18801c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call dbg.runtime/internal/atomic.Cas
movzx eax, byte [esp + 0xc]
test al, al
jne 0x40589a
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x18801c]
test ecx, ecx
jne 0x40581e
call dbg.runtime.printlock
lea eax, [0x9a5254]
mov dword [esp], eax
mov dword [esp + 4], 0x30
call dbg.runtime.printstring
call dbg.runtime.printunlock
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x188020]
dec ecx
neg ecx
mov dword [eax + 0x188020], ecx
mov byte [eax + 0x188024], 0
movzx ecx, byte [eax + 0x188025]
test cl, cl
je 0x405b0a
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x400
jge 0x405929
jae 0x405b03
mov edx, ecx
imul ecx, ecx, 0x420
lea ecx, [eax + ecx + 0x14]
mov dword [esp + 0x18], ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp ebx, 4
jge 0x40591a
jae 0x405afc
mov ebp, ebx
shl ebx, 8
lea ebx, [ebx + ebp*8]
lea esi, [ecx + ebx]
mov ebx, dword [ecx + ebx]
test ebx, ebx
ja 0x405ab0
lea ebx, [ebp + 1]
mov dword [esp + 0x10], ebx
cmp ebx, 4
jl 0x4058f2
lea ecx, [edx + 1]
mov dword [esp + 0x14], ecx
cmp ecx, 0x400
jl 0x4058d1
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x188014]
test ecx, ecx
jle 0x4059ca
mov dword [eax + 0x188014], 0
mov edx, dword [eax + 0x188018]
cmp edx, 2
jae 0x4059c3
shl edx, 0x12
lea eax, [eax + edx + 0x108014]
cmp ecx, 0x10000
ja 0x4059bc
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0x10000
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
shl eax, 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
add esp, 0x70
ret
call dbg.runtime.panicslice
ud2
call dbg.runtime.panicindex
ud2
movzx ecx, byte [eax + 0x188026]
test cl, cl
je 0x405a45
mov byte [eax + 0x188025], 0
mov ecx, dword [eax + 0x18801c]
mov dword [esp + 4], ecx
add eax, 0x18801c
mov dword [esp], eax
mov dword [esp + 8], 0
call dbg.runtime/internal/atomic.Cas
movzx eax, byte [esp + 0xc]
test al, al
je 0x405a23
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
call dbg.runtime.printlock
lea eax, [0x9a401b]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call dbg.runtime.printstring
call dbg.runtime.printunlock
jmp 0x405a04
mov byte [eax + 0x188026], 1
lea eax, [0xc475f0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], 3
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
shl eax, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x70
ret
mov dword [esp + 0x20], 0
lea ebx, [0x44fde0]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp], eax
mov dword [esp + 4], esi
lea esi, [esp + 0x20]
mov dword [esp + 8], esi
call dbg.runtime.(*cpuProfile).evict
movzx eax, byte [esp + 0xc]
test al, al
je 0x405929
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
jmp 0x40590e
call dbg.runtime.panicindex
ud2
call dbg.runtime.panicindex
ud2
movzx ecx, byte [eax]
test cl, cl
je 0x405c38
lea ecx, [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0xffffffff
call dbg.runtime.notetsleepg
mov eax, dword [esp + 0x1c]
test byte [eax], al
mov eax, dword [esp + 0x74]
mov dword [eax + 4], 0
mov ecx, dword [eax + 0x18801c]
test ecx, ecx
je 0x405bf9
cmp ecx, 0x80000000
jne 0x405b67
mov byte [eax + 0x188025], 1
jmp 0x4058c3
mov byte [eax + 0x188024], 1
mov edx, dword [eax + 0x188020]
cmp edx, 2
jae 0x405bf2
and ecx, 0x7fffffff
shl edx, 0x12
lea eax, [eax + edx + 0x108014]
cmp ecx, 0x10000
ja 0x405beb
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 0x10000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
shl eax, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
add esp, 0x70
ret
call dbg.runtime.panicslice
ud2
call dbg.runtime.panicindex
ud2
call dbg.runtime.printlock
lea eax, [0x9a3fee]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
call dbg.runtime.printstring
call dbg.runtime.printunlock
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
mov ecx, dword [eax + 0x18801c]
test ecx, ecx
je 0x405c47
jmp 0x405b15
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
mov ecx, dword [eax + 0x188020]
dec ecx
neg ecx
mov dword [eax + 0x188020], ecx
mov word [eax + 0x188024], 0x100
jmp 0x4058c3
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
call dbg.runtime.morestack_noctxt
jmp dbg.runtime.(*cpuProfile).getprofile