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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1b0
mov esi, esp
mov eax, dword [0x587040]
xor eax, ebp
mov dword [esi + 0x1a8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
movzx eax, byte [eax + 9]
and eax, 0x7f
mov bl, 1
mov dword [esi + 0xc], ebx
cmp eax, 1
mov dword [esi + 4], ecx
mov dword [esi + 0x14], edx
jne 0x4e3c70
mov eax, dword [ecx + 8]
mov ecx, 2
lock xadd dword [eax], ecx
test cl, 1
jne 0x4e3c96
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x140], xmm0
movdqa xmmword [esi + 0x190], xmm0
movdqa xmmword [esi + 0x180], xmm0
movdqa xmmword [esi + 0x170], xmm0
movdqa xmmword [esi + 0x160], xmm0
movdqa xmmword [esi + 0x150], xmm0
mov byte [esi + 0x140], 0
mov byte [esi + 0x198], 0
mov dword [esi + 0x20], 0x102
mov byte [esi + 0x24], 0
mov dword [esi + 0x70], 0xffffffff
mov ecx, dword [edi]
lea eax, [esi + 0x70]
push eax
call fcn.004e58c0
cmp byte [esi + 0xc], 0
je 0x4e3cdf
lea ebx, [esi + 0x88]
mov ecx, edi
lea eax, [esi + 0x70]
push eax
push ebx
call fcn.004e5a80
lea ecx, [esi + 0xe0]
push ebx
call fcn.004e34b0
mov byte [esi + 0x138], 1
mov al, 1
movzx ecx, byte [esi + 0x198]
cmp cl, al
mov edi, dword [esi + 4]
je 0x4e3d37
test cl, cl
lea ebx, [ebp + 0xc]
jne 0x4e3d59
lea eax, [esi + 0xe0]
lea ecx, [esi + 0x140]
push eax
call fcn.004e34b0
mov byte [esi + 0x198], 1
cmp byte [esi + 0x138], 1
jne 0x4e38a1
lea ecx, [esi + 0xe0]
call fcn.004e5d80
cmp byte [esi + 0xc], 0
je 0x4e38b2
lea ecx, [esi + 0x88]
call fcn.004e5d80
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 8]
mov dword [esi + 0x20], ecx
movzx eax, byte [eax + 0xc]
mov byte [esi + 0x24], al
lea ecx, [esi + 0x70]
call fcn.004e57f0
cmp byte [esi + 0x198], 1
jne 0x4e3af6
mov eax, dword [esi + 0x158]
or eax, dword [esi + 0x15c]
jne 0x4e3c23
mov dword [esi + 0x18], esp
sub esp, 0x60
mov edi, esp
cmp byte [esi + 0x198], 0
je 0x4e3cf9
mov ebx, dword [ebx]
lea eax, [esi + 0x140]
mov ecx, edi
push eax
call fcn.004e34b0
mov dword [edi + 0x58], ebx
lea eax, [esi + 0x20]
mov dword [edi + 0x5c], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x4e3df0
jne 0x4e3b6d
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
call dword [0x580f64]
mov ecx, ebx
lea eax, [esi + 0x70]
push eax
call dword [esi + 8]
mov eax, dword [edi + 0x5c]
movzx eax, byte [eax + 1]
mov byte [esi + 0x13], al
test al, 0x7f
je 0x4e3c09
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
mov ecx, dword [edi + 0x58]
xor eax, eax
cmp dword [ecx + 0x1c], 2
sete al
lea ecx, [esi + 0x64]
push 0
push eax
push dword [esi + 0x70]
call fcn.004e7700
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x5c], 0xffffffff
mov eax, dword [edi + 0x5c]
movzx eax, byte [eax]
lea ecx, [esi + 0x5c]
push eax
call fcn.004e1fa0
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x40], xmm0
mov byte [esi + 0x40], 0
mov byte [esi + 0x4c], 0
mov eax, dword [esi + 0x74]
test eax, eax
mov dword [esi + 8], edi
je 0x4e3c35
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
lea ecx, [esi + 0x38]
push eax
call fcn.004d2670
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov byte [esi + 0x2c], 0
mov byte [esi + 0x34], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xe0], xmm0
mov dword [esi + 0xf0], 0xffffffff
mov byte [esi + 0xe0], 0
mov byte [esi + 0xf0], 0
mov eax, dword [esi + 0x7c]
test eax, eax
mov ecx, dword [esi + 4]
je 0x4e3bbb
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x4e3d34
lea edi, [esi + 0x34]
lea ecx, [esi + 0x2c]
push eax
call fcn.004ab130
mov byte [edi], 1
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edi + 0x58]
mov eax, dword [edi + 0x5c]
mov ebx, edi
movzx edi, byte [eax + 1]
and edi, 0x7f
cmp edi, 1
jne 0x4e3bf1
lea edi, [esi + 0x70]
push edi
push edx
push eax
push ebx
call fcn.004e4330
mov edi, ebx
mov dword [esi + 0x28], 0
mov ecx, edi
add ecx, 0x50
lea edi, [esi + 0x28]
push edi
call fcn.004b9420
mov ecx, edi
call fcn.004b9490
cmp byte [esi + 0xf0], 1
je 0x4e3b91
cmp byte [esi + 0x34], 1
jne 0x4e3ab1
lea ecx, [esi + 0x2c]
call fcn.004ab1a0
lea ecx, [esi + 0x38]
call fcn.004d26b0
cmp byte [esi + 0x4c], 1
mov edi, dword [esi + 4]
je 0x4e3b84
lea ecx, [esi + 0x5c]
call fcn.004e1fe0
lea ecx, [esi + 0x64]
call fcn.004e77a0
test byte [esi + 0x13], 0x7f
je 0x4e3ba1
lea ecx, [esi + 0x70]
call fcn.004938a0
mov ecx, dword [esi + 8]
call fcn.004e5d80
lea ebx, [ebp + 0xc]
mov esp, dword [esi + 0x18]
cmp byte [esi + 0xc], 0
je 0x4e3b1d
mov eax, dword [ebx]
movzx eax, byte [eax + 9]
and al, 0x7f
cmp al, 1
jne 0x4e3b1d
mov eax, dword [edi + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
je 0x4e3cb6
mov ecx, ebx
push 0
call fcn.004e5ab0
test al, al
jne 0x4e3b79
mov ecx, dword [esi + 0x14]
push 0
call fcn.004e58f0
lea edi, [ebp + 8]
cmp byte [esi + 0x198], 1
jne 0x4e3b4b
lea ecx, [esi + 0x140]
call fcn.004e5d80
mov ecx, ebx
call fcn.004e5940
mov edi, dword [edi]
mov ecx, dword [esi + 0x1a8]
xor ecx, ebp
call fcn.004ecef0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, ecx
call fcn.004e3df0
jmp 0x4e3af0
mov ecx, dword [esi + 0x14]
push ebx
call fcn.004e5910
jmp 0x4e3b34
lea ecx, [esi + 0x40]
call fcn.004d2600
jmp 0x4e3ac6
lea ecx, [esi + 0xe0]
call fcn.004ab0b0
jmp 0x4e3aa3
mov eax, dword [0x58a36c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
dec dword [eax + 0xdc]
jmp 0x4e3ae0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4e3a54
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x4e3d72
lea edi, [esi + 0xf0]
lea ecx, [esi + 0xe0]
push eax
call fcn.004aafa0
jmp 0x4e3a4b
test edi, edi
jne 0x4e3c53
lea edi, [esi + 0x70]
push edi
push edx
push eax
mov edi, dword [esi + 8]
push edi
call fcn.004e4260
jmp 0x4e3a7a
mov eax, dword [0x58a36c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
inc dword [eax + 0xdc]
jmp 0x4e395a
mov eax, dword [edi + 8]
mov eax, dword [eax]
test al, 1
je 0x4e38e9
jmp 0x4e3d75
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004d25e0
mov byte [edi + 0xc], 1
mov eax, dword [esi + 0x74]
test eax, eax
cmove eax, edi
mov edi, dword [esi + 8]
jmp 0x4e39c5
cmp edi, 2
mov edi, dword [esi + 8]
jne 0x4e3a7a
lea ebx, [esi + 0x70]
push ebx
push edx
push eax
push edi
call fcn.0048cbd0
jmp 0x4e3a7a
test eax, eax
jne 0x4e3c86
mov eax, dword [ecx + 8]
mov eax, dword [eax]
test al, 1
sete al
mov dword [esi + 0xc], eax
jmp 0x4e37c7
cmp eax, 2
je 0x4e37c7
call fcn.0053f890
jmp 0x4e3caa
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
je 0x4e3cfe
mov dword [esi + 0xc], 0
jmp 0x4e37c7
add edi, 0x34
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4e3db0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
call fcn.004ab3c0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x4e3b1d
lea ebx, [esi + 0xe0]
mov ecx, edi
lea eax, [esi + 0x70]
push eax
push ebx
call fcn.0048d250
mov al, byte [ebx + 0x58]
jmp 0x4e3857
call fcn.0051d0f0
mov eax, dword [esi + 4]
lea edi, [eax + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4e3dcb
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
call fcn.004ab3c0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [esi + 0xc], 0
lea edi, [ebp + 0xc]
jmp 0x4e37c7
int3
test cl, cl
lea ebx, [ebp + 0xc]
je 0x4e388d
lea eax, [esi + 0xe0]
lea ecx, [esi + 0x140]
push eax
call fcn.004e34c0
jmp 0x4e388d
lea edi, [esi + 0x140]
mov ecx, edi
call fcn.004e5d80
mov byte [edi + 0x58], 0
mov edi, dword [esi + 4]
jmp 0x4e388d
int3
mov eax, dword [esi + 0x190]
xor edx, edx
mov dword [esi + 0x190], edx
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0xe0]
mov dword [ecx], edx
call fcn.004b9490
cmp byte [esi + 0x198], 0
je 0x4e3dbc
lea ecx, [esi + 0x190]
mov eax, dword [esi + 0x1c]
push eax
call fcn.00551f30
jmp 0x4e38e9
mov ecx, edi
call fcn.004a5a80
jmp 0x4e3cc8
push str....._third_partylibc_srcincludeoptional:790:_assertion_this__has_value___failed:_optional_operator___called_on_a_disengaged_value_n
push 0x565ab5
call fcn.0051c8d0
mov ecx, edi
call fcn.004a5a80
jmp 0x4e3d13