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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x11c0
call fcn.00587440
mov esi, esp
mov dword [esi + 0x11a8], ebp
mov dword [esi + 0x11ac], esp
mov dword [esi + 0x11b8], 0xffffffff
mov dword [esi + 0x11b4], 0x5071d0
lea eax, [esi + 0x11b0]
mov ecx, dword fs:[0]
mov dword [esi + 0x11b0], ecx
mov dword fs:[0], eax
call fcn.005062d0
test eax, eax
jne 0x506c2d
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
mov dword [esi + 0x28], edx
je 0x506791
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x5067b3
mov ecx, dword [ecx + 8]
mov dword [esi + 0x11b8], 0
mov edx, edi
push ebx
call fcn.00506cd0
add esp, 4
jmp 0x506c1a
mov eax, ecx
dec ecx
mov dword [esi + 0x11b8], 0
mov edx, edi
test eax, eax
cmove ecx, eax
push ebx
call fcn.00506cd0
add esp, 4
jmp 0x506c1a
lea eax, [esi + 0x1b4]
push 0xff4
push 0
push eax
call fcn.00588b30
add esp, 0xc
mov eax, dword [0x6372d0]
mov dword [esi + 0x200], 0x7d0
mov dword [esi + 0x1b0], 0x58
test eax, eax
jne 0x50680e
mov eax, dword [0x6372a4]
mov dword [esi + 0x11b8], 0
push 0x609ad6
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x506c58
mov dword [0x6372d0], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x11b8], 0
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov ecx, dword [ebp + 0xc]
lea ebx, [esi + 0xb0]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0x114]
xor ecx, ecx
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
sub edx, 1
cmovb edx, ecx
lea ecx, [esi + 0x1b0]
push ecx
push ebx
mov dword [esi + 0x30], edi
push edi
push 0
mov dword [esi + 0x34], edx
push edx
push eax
call dword [esi + 0xc]
lea edx, [esi + 0xb0]
cmp eax, 1
jne 0x506c1a
mov eax, dword [esi + 0x200]
mov ecx, dword [esi + 0x1fc]
xorps xmm0, xmm0
lea ebx, [esi + 0x204]
mov dword [esi + 0xc], 0x100
mov dword [esi + 0x20], 0
movaps xmmword [esi + 0x1a0], xmm0
movaps xmmword [esi + 0x190], xmm0
movaps xmmword [esi + 0x180], xmm0
movaps xmmword [esi + 0x170], xmm0
movaps xmmword [esi + 0x160], xmm0
movaps xmmword [esi + 0x150], xmm0
movaps xmmword [esi + 0x140], xmm0
movaps xmmword [esi + 0x130], xmm0
movaps xmmword [esi + 0x120], xmm0
movaps xmmword [esi + 0x110], xmm0
movaps xmmword [esi + 0x100], xmm0
movaps xmmword [esi + 0xf0], xmm0
movaps xmmword [esi + 0xe0], xmm0
movaps xmmword [esi + 0xd0], xmm0
movaps xmmword [esi + 0xc0], xmm0
movaps xmmword [esi + 0xb0], xmm0
dec eax
cmp ecx, eax
cmovb eax, ecx
xor ecx, ecx
lea eax, [esi + eax*2 + 0x204]
mov dword [esi + 0x2c], eax
test cx, cx
je 0x506930
nop
movzx eax, word [esi + 0x26]
jmp 0x50693f
cmp ebx, dword [esi + 0x2c]
je 0x506a6f
movzx eax, word [ebx]
add ebx, 2
mov ecx, eax
mov dword [esi + 0x18], edx
and ecx, 0xf800
cmp ecx, 0xd800
movzx ecx, ax
jne 0x5069b0
cmp ecx, 0xdbff
mov ecx, 0xfffd
mov dword [esi + 0x10], 0
ja 0x5069f6
cmp ebx, dword [esi + 0x2c]
je 0x5069f6
movzx edi, word [ebx]
add ebx, 2
mov dword [esi + 0x14], ebx
mov ebx, edi
add ebx, 0x2000
movzx edx, bx
mov bx, 1
cmp edx, 0xfc00
mov dword [esi + 0x10], ebx
jae 0x506a3b
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov eax, edi
mov word [esi + 0x26], di
jmp 0x5069f6
cmp ecx, 0x80
jae 0x5069e0
mov eax, 1
mov dword [esi + 0x10], 0
mov edi, dword [esi + 0xc]
sub edi, eax
mov dword [esi + 0x3c], edi
ja 0x506a05
jmp 0x506a6f
movzx eax, ax
mov dword [esi + 0x10], 0
cmp eax, 0x7ff
mov eax, 2
jbe 0x5069fb
mov eax, 3
mov edi, dword [esi + 0xc]
sub edi, eax
mov dword [esi + 0x3c], edi
jbe 0x506a6f
mov dword [esi + 0x38], eax
mov dword [esi + 0x14], ebx
push dword [esi + 0xc]
call fcn.005065b0
add esp, 4
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
mov dword [esi + 0xc], ecx
add dword [esi + 0x20], eax
mov ecx, dword [esi + 0x10]
add edx, eax
test cx, cx
jne 0x506920
jmp 0x506930
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x14]
movzx ecx, di
and eax, 0x3ff
mov dword [esi + 0x10], 0
shl eax, 0xa
and ecx, 0x3ff
lea ecx, [eax + ecx + 0x10000]
mov eax, 4
mov edi, dword [esi + 0xc]
sub edi, eax
mov dword [esi + 0x3c], edi
ja 0x506a05
cmp dword [esi + 0x20], 0x101
jae 0x506c41
mov eax, dword [0x6372d4]
xorps xmm0, xmm0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
movaps xmmword [esi + 0x90], xmm0
mov dword [esi + 0x90], 0x18
test eax, eax
jne 0x506acb
push 0x609aec
push dword [0x6372a4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x506c6e
mov dword [0x6372d4], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edi, dword [esi + 0xc]
lea ecx, [esi + 0x90]
mov dword [esi + 0x40], 0
lea edx, [esi + 0x40]
push ecx
push edx
push 0
push 0
push dword [esi + 0x30]
push 0
push dword [esi + 0x34]
push eax
call edi
cmp eax, 1
jne 0x506b8a
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
mov edx, 0xffffffff
mov dword [esi + 0x14], eax
nop word cs:[eax + eax]
nop
cmp word [ecx + edx*2 + 2], 0
mov eax, edx
lea edx, [edx + 1]
jne 0x506b20
mov eax, dword [esi + 0x1e8]
mov dword [esi + 0x11b8], 0
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x70]
push edx
mov dword [esi + 0xc], ecx
push ecx
push eax
call fcn.0051ab60
add esp, 0xc
movzx ecx, word [esi + 0x7d]
mov eax, dword [esi + 0x78]
movsd xmm0, qword [esi + 0x70]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
mov word [esi + 0x1c], cx
movzx ecx, byte [esi + 0x7f]
mov dword [esi + 0x88], eax
movzx eax, byte [esi + 0x7c]
movsd qword [esi + 0x80], xmm0
mov byte [esi + 0x1e], cl
mov ecx, 1
jmp 0x506b94
mov edi, dword [esi + 0x1e8]
mov al, 2
xor ecx, ecx
mov edx, dword [esi + 0x88]
movsd xmm0, qword [esi + 0x80]
mov dword [esi + 0x11b8], 1
mov dword [esi + 0x5c], edx
movzx edx, word [esi + 0x1c]
movsd qword [esi + 0x54], xmm0
mov word [esi + 0x61], dx
movzx edx, byte [esi + 0x1e]
mov byte [esi + 0x63], dl
mov edx, dword [esi + 0x14]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x60], al
lea eax, [esi + 0xb0]
lea ecx, [esi + 0x40]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x6c], edi
mov eax, dword [eax + 0x10]
push ecx
push dword [ebp + 0x10]
call eax
add esp, 8
cmp byte [esi + 0x60], 2
je 0x506c1a
mov eax, dword [esi + 0x58]
test eax, eax
je 0x506c1a
push 1
push eax
push dword [esi + 0x54]
call fcn.00452e30
add esp, 0xc
mov dword [esi + 0x11b8], 0xffffffff
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov eax, dword [esi + 0x11b0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x609c58
push 0x100
push dword [esi + 0x20]
call fcn.005b1b20
add esp, 0xc
jmp 0x506c82
push 0x609b0c
push 0x2b
push str.called__Option::unwrap____on_a__None__valueC:Userscompile_bamboo.cargo_registry_srcindex.crates.io_6f17d22bba15001f_backtrace_0.3.68_srcdbghelp.rs
call fcn.005b1730
add esp, 0xc
jmp 0x506c82
push 0x609b0c
push 0x2b
push str.called__Option::unwrap____on_a__None__valueC:Userscompile_bamboo.cargo_registry_srcindex.crates.io_6f17d22bba15001f_backtrace_0.3.68_srcdbghelp.rs
call fcn.005b1730
add esp, 0xc
ud2