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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [ecx + 8]
mov edi, edx
mov esi, ecx
mov dword [esp], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x642df8
xor edx, edx
movzx eax, byte [esi + 0xc]
test al, al
jne 0x642e0e
mov dword [esp + 4], edi
mov eax, dword [0x94bccc]
test eax, eax
je 0x642bf1
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0xbc]
add ecx, eax
jo 0x642dd7
js 0x642e46
mov ebx, edx
mov edx, dword [esp + 4]
mov edi, edx
sub edi, ecx
jbe 0x642d93
add eax, edi
mov edx, ebx
jno 0x642d9b
jmp 0x642dd7
movzx eax, byte [0x94a368]
test al, al
je 0x642bbb
movzx eax, al
cmp eax, 1
je 0x642c23
cmp eax, 2
je 0x642c67
mov ecx, 0x94a360
mov edi, edx
call fcn.007d3740
mov edx, edi
test al, al
je 0x642bbb
movzx eax, al
cmp eax, 2
je 0x642c67
mov eax, dword [0x94a360]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x642bbb
mov ebx, edx
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x642c55
mov edi, dword [ecx + 8]
dec edi
and edi, 0xfffffff8
lea edx, [edi + edx + 8]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
mov edx, ebx
je 0x642bbb
mov eax, dword [0x94a360]
mov dword [esp + 8], edx
mov edx, dword [eax + 0x20]
test edx, edx
je 0x642e5a
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edx
movlps qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
lea edi, [esp + 4]
mov edx, dword [esi + 0x64]
mov dword [esp + 0x40], edi
lea edi, [esp + 0xc]
mov dword [esp + 0x44], 0x4631b0
mov dword [esp + 0x6c], 0x827460
mov dword [esp + 0x70], 3
mov dword [esp + 0x7c], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0x470660
mov dword [esp + 0xc], edx
lea edx, [esi + 0xbc]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x54], 0x4631b0
mov dword [esp + 0x74], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x78], 3
mov dword [esp + 0x28], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], 0x81c698
mov dword [esp + 0x34], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x642d8a
cmp dword [0x94bcc0], 0
mov edi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ebx, dword [0x94bcc8]
je 0x642d6e
mov eax, dword [ebx + 8]
dec eax
and eax, 0xfffffff8
lea edi, [eax + edi + 8]
lea eax, [esp + 0x10]
push eax
push edi
call dword [ebx + 0x28]
add esp, 8
test al, al
je 0x642d8a
lea eax, [esp + 0x10]
push eax
push edi
call dword [ebx + 0x2c]
add esp, 8
mov edx, dword [esp + 8]
jmp 0x642bbb
sub ecx, edx
sub eax, ecx
mov edx, ebx
jo 0x642dd7
mov dword [esi + 0x64], eax
mov ecx, dword [esi + 0x60]
sub eax, ecx
jle 0x642dd7
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
cmp eax, edx
mov edx, ebx
jl 0x642dd7
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + 0xec]
mov dword [esi + 0xe8], 0
test eax, eax
je 0x642dd7
push ecx
call dword [eax + 4]
mov edx, ebx
add esp, 4
test dl, dl
jne 0x642de7
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x642e37
push dword [esp]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.007d1b30
mov edx, eax
xor dl, 1
movzx eax, byte [esi + 0xc]
test al, al
je 0x642bae
mov eax, dword [esp]
mov ecx, 0x93b384
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], dl
lea eax, [esp + 0x10]
mov edx, 0x2b
push 0x8ab050
push 0x8abf8c
push eax
call fcn.007c1f60
call fcn.007d1b30
test al, al
jne 0x642de7
mov byte [esi + 0xc], 1
jmp 0x642de7
mov ecx, 0x826d9c
mov edx, 0xf
push 0x826dac
call fcn.007c2530
mov ecx, 0x8a6758
mov edx, 0x22
push 0x827420
call fcn.007c2000
int3