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

Disassembly:
mov ecx, dword [0x69e340]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x78]
cmp eax, dword [ecx + 8]
jbe 0x4ea8d2
sub esp, 0xf8
mov eax, dword [esp + 0xfc]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0xf4], ecx
mov dword [esp], ecx
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0xfc]
movzx ecx, byte [eax + 0x40]
test cl, cl
jne 0x4ea82c
mov eax, dword [esp + 0x100]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x104]
mov dword [esp], edx
call ecx
mov dword [esp], 0
call sym.runtime.selectnbrecv
movzx eax, byte [esp + 8]
test al, al
jne 0x4ea7df
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x58]
movzx ebx, byte [esp + 0x108]
cmp bl, 1
jne 0x4e9f38
mov ebp, dword [eax + 0x24]
lea esi, [ebp - 1]
test esi, esi
jl 0x4e9f38
mov ebx, dword [eax + 0x20]
mov ebx, dword [ebx + ebp*4 - 4]
mov dword [esp + 0x7c], ebx
mov dword [eax + 0x24], esi
mov byte [ebx + 0x30], 1
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.database_sql._driverConn_.expired
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4e9ecc
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x100]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 8], ecx
call sym.database_sql._driverConn_.resetSession
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], ecx
mov edx, dword [0x651760]
mov ebx, dword [0x651764]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call sym.errors.Is
movzx eax, byte [esp + 0x10]
test al, al
je 0x4e9ea4
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sym.database_sql._driverConn_.Close
mov dword [esp + 0x10c], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x114], eax
add esp, 0xf8
ret
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
add esp, 0xf8
ret
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x84]
add ecx, 1
mov dword [eax + 0x80], ecx
adc edx, 0
mov dword [eax + 0x84], edx
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sym.database_sql._driverConn_.Close
mov eax, dword [0x651760]
mov ecx, dword [0x651764]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
add esp, 0xf8
ret
mov ebp, dword [eax + 0x50]
test ebp, ebp
jle 0x4ea478
cmp dword [eax + 0x38], ebp
jl 0x4ea478
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [0x5311e0]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.makechan
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x34], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x68], ebx
nop
mov ebp, ecx
add ecx, 1
mov dword [eax + 0x30], ecx
mov ecx, edx
adc edx, 0
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x2c]
lea esi, [0x5352c0]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call sym.runtime.mapassign_fast64
mov eax, dword [esp + 0x10]
test byte [eax], al
mov ecx, dword [0x69e3e8]
test ecx, ecx
jne 0x4e9fcb
mov ecx, dword [esp + 0x68]
jmp 0x4e9fdb
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x68]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [esp + 0xfc]
mov edx, dword [eax + 0x68]
mov ebx, dword [eax + 0x6c]
add edx, 1
mov dword [eax + 0x68], edx
adc ebx, 0
mov dword [eax + 0x6c], ebx
mov edx, dword [esp + 0xf4]
mov dword [esp], edx
call sym.sync._Mutex_.Unlock
mov edx, dword [0x650f5c]
mov eax, dword [edx]
call eax
lea edi, [esp + 0x54]
lea esi, [esp]
call fcn.0046b21e
mov eax, dword [esp + 0x100]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x104]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x84]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call sym.runtime.selectgo
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4ea33d
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x23], al
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0xf0], ecx
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0xe0]
mov dword [esp + 0xec], ebx
lea edi, [esp]
lea esi, [esp + 0x54]
call fcn.0046b21e
call sym.time.Since
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xfc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.sync_atomic.AddInt64
movzx eax, byte [esp + 0x23]
test al, al
je 0x4ea311
movzx eax, byte [esp + 0x108]
cmp al, 1
jne 0x4ea21b
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4ea21f
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call sym.database_sql._driverConn_.expired
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4ea19d
mov eax, dword [esp + 0x50]
jmp 0x4ea21f
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x84]
add ecx, 1
mov dword [eax + 0x80], ecx
adc edx, 0
mov dword [eax + 0x84], edx
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call sym.database_sql._driverConn_.Close
mov eax, dword [0x651760]
mov ecx, dword [0x651764]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
add esp, 0xf8
ret
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xf0]
test ecx, ecx
je 0x4ea2ea
mov dword [esp], ecx
mov eax, dword [esp + 0x100]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 8], eax
call sym.database_sql._driverConn_.resetSession
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov edx, dword [0x651760]
mov ebx, dword [0x651764]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call sym.errors.Is
movzx eax, byte [esp + 0x10]
test al, al
je 0x4ea2bc
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call sym.database_sql._driverConn_.Close
mov dword [esp + 0x10c], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x114], eax
add esp, 0xf8
ret
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x114], eax
add esp, 0xf8
ret
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x114], eax
add esp, 0xf8
ret
mov eax, dword [0x6515d0]
mov ecx, dword [0x6515d4]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
add esp, 0xf8
ret
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x2c]
lea edx, [0x5352c0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
call sym.runtime.mapdelete_fast64
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
lea edi, [esp]
lea esi, [esp + 0x54]
call fcn.0046b21e
call sym.time.Since
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xfc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call sym.sync_atomic.AddInt64
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
lea eax, [esp + 0xcc]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
call sym.runtime.selectnbrecv
movzx eax, byte [esp + 8]
test al, al
je 0x4ea43a
movzx eax, byte [esp + 9]
test al, al
je 0x4ea43a
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4ea43a
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
mov ebx, dword [esp + 0xfc]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov byte [esp + 0x10], 0
call sym.database_sql._DB_.putConn
mov eax, dword [esp + 0x100]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x104]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
add esp, 0xf8
ret
inc dword [eax + 0x38]
mov ecx, dword [esp + 0xf4]
mov dword [esp], ecx
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp], edx
mov edx, dword [esp + 0x100]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 8], edx
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x4ea520
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Lock
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x38]
lea edx, [ecx - 1]
mov dword [eax + 0x38], edx
mov edx, dword [eax + 0x2c]
nop
test edx, edx
je 0x4ea4fc
mov edx, dword [edx]
jmp 0x4ea4fe
xor edx, edx
mov ebx, dword [eax + 0x50]
test ebx, ebx
jle 0x4ea519
sub ebx, ecx
lea ecx, [ebx + 1]
cmp edx, ecx
jg 0x4ea88c
mov ecx, edx
jmp 0x4ea88c
mov ecx, edx
jmp 0x4ea88c
mov dword [esp + 0x80], edx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Lock
mov edx, dword [0x650f5c]
mov eax, dword [edx]
call eax
lea edi, [esp + 0xb8]
lea esi, [esp]
call fcn.0046b21e
mov edx, dword [0x650f5c]
mov eax, dword [edx]
call eax
lea edi, [esp + 0xa4]
lea esi, [esp]
call fcn.0046b21e
lea eax, [0x548ba0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [0x69e3e8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x4ea591
mov eax, dword [esp + 0xfc]
jmp 0x4ea59f
call sym.runtime.gcWriteBarrier1
mov eax, dword [esp + 0xfc]
mov dword [edi], eax
mov dword [esp + 0x78], ecx
mov dword [ecx], eax
mov edx, dword [0x69e3e8]
lea edi, [ecx + 4]
test edx, edx
je 0x4ea5e8
mov dword [esp + 0xe8], edi
lea eax, [0x54f600]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [esp + 0xb8]
mov dword [esp + 8], ecx
call sym.runtime.wbMove
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0xe8]
lea esi, [esp + 0xb8]
call fcn.0046b21e
mov ecx, dword [0x69e3e8]
mov edx, dword [esp + 0x78]
lea edi, [edx + 0x34]
test ecx, ecx
je 0x4ea651
mov dword [esp + 0xe8], edi
mov eax, edi
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x80]
mov dword [edi], ecx
mov ebx, dword [edx + 0x24]
mov dword [edi + 4], ebx
lea ebx, [0x54f600]
mov dword [esp], ebx
mov dword [esp + 4], eax
lea ebx, [esp + 0xa4]
mov dword [esp + 8], ebx
call sym.runtime.wbMove
mov eax, dword [esp + 0xfc]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0xe8]
lea esi, [esp + 0xa4]
call fcn.0046b21e
mov ecx, dword [esp + 0x4c]
mov dword [edx + 0x20], ecx
mov ecx, dword [esp + 0x80]
mov dword [edx + 0x24], ecx
mov byte [edx + 0x30], 1
mov ecx, dword [eax + 0x44]
nop
test ecx, ecx
jne 0x4ea6b0
call sym.runtime.makemap_small
mov eax, dword [0x69e3e8]
mov ecx, dword [esp]
test eax, eax
jne 0x4ea695
mov eax, dword [esp + 0xfc]
jmp 0x4ea6a9
call sym.runtime.gcWriteBarrier2
mov dword [edi], ecx
mov eax, dword [esp + 0xfc]
mov edx, dword [eax + 0x44]
mov dword [edi + 4], edx
mov dword [eax + 0x44], ecx
mov edx, dword [esp + 0x78]
lea ecx, [0x589dbc]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov ebx, dword [eax + 0x44]
lea ebp, [0x535340]
mov dword [esp], ebp
mov dword [esp + 4], ebx
lea ebx, [esp + 0x9c]
mov dword [esp + 8], ebx
call sym.runtime.mapaccess1
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4ea76c
call sym.runtime.makemap_small
mov eax, dword [esp]
mov dword [esp + 0xe4], eax
lea ecx, [0x589dbc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xa0], ecx
mov edx, dword [esp + 0xfc]
mov edx, dword [edx + 0x44]
lea ebx, [0x535340]
mov dword [esp], ebx
mov dword [esp + 4], edx
lea edx, [esp + 0x9c]
mov dword [esp + 8], edx
call sym.runtime.mapassign
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x69e3e8]
test ecx, ecx
jne 0x4ea755
mov ecx, dword [esp + 0xe4]
jmp 0x4ea768
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0xe4]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, ecx
lea ecx, [0x54a2c0]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x98], ecx
lea edx, [0x538020]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
call sym.runtime.mapassign
mov eax, dword [esp + 0xc]
mov byte [eax], 1
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
add esp, 0xf8
ret
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [esp + 0x100]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x104]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
add esp, 0xf8
ret
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov eax, dword [0x6515d0]
mov ecx, dword [0x6515d4]
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
add esp, 0xf8
ret
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 4], ecx
call sym.runtime.chansend1
mov eax, dword [esp + 0x2c]
lea ecx, [eax - 1]
mov eax, dword [esp + 0xfc]
test ecx, ecx
jle 0x4ea89b
inc dword [eax + 0x38]
movzx edx, byte [eax + 0x40]
test dl, dl
je 0x4ea867
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
call sym.sync._Mutex_.Unlock
mov dword [esp + 0x10c], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x114], eax
add esp, 0xf8
ret
call sym.runtime.morestack_noctxt
jmp sym.database_sql._DB_.conn