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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x11b0
call fcn.00587440
mov esi, esp
mov dword [esi + 0x1198], ebp
mov dword [esi + 0x119c], esp
mov dword [esi + 0x11a8], 0xffffffff
mov dword [esi + 0x11a4], 0x5071e0
mov edi, ecx
lea eax, [esi + 0x11a0]
mov dword [esi + 0x2c], edx
mov ecx, dword fs:[0]
mov dword [esi + 0x11a0], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x1a4]
push 0xff4
push 0
push eax
call fcn.00588b30
add esp, 0xc
mov ebx, dword [0x6372c4]
mov dword [esi + 0x1f0], 0x7d0
mov dword [esi + 0x1a0], 0x58
test ebx, ebx
jne 0x506d77
push 0x609aa7
push dword [0x6372a4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x507177
mov ebx, eax
mov dword [0x6372c4], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
lea ecx, [esi + 0x1a0]
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
lea edx, [esi + 0xa0]
push ecx
mov dword [esi + 0x24], edx
push edx
push 0
mov dword [esi + 0x28], edi
push edi
push eax
call ebx
cmp eax, 1
jne 0x507163
mov eax, dword [esi + 0x1f0]
mov ecx, dword [esi + 0x1ec]
xorps xmm0, xmm0
lea edi, [esi + 0x1f4]
mov dword [esi + 0x14], 0
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
movaps xmmword [esi + 0xa0], xmm0
dec eax
cmp ecx, eax
cmovb eax, ecx
xor edx, edx
lea eax, [esi + eax*2 + 0x1f4]
mov dword [esi + 0x20], eax
mov eax, 0x100
test dx, dx
je 0x506ef0
movzx ecx, word [esi + 0x1e]
mov edx, ecx
mov ecx, edx
and ecx, 0xf800
cmp ecx, 0xd800
jne 0x506f13
movzx ecx, dx
cmp ecx, 0xdbff
mov ecx, 0xfffd
ja 0x506f40
cmp edi, dword [esi + 0x20]
je 0x506f40
mov ebx, edi
movzx edi, word [edi]
mov dword [esi + 0x18], eax
mov ax, 1
add ebx, 2
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov ebx, edi
add ebx, 0x2000
movzx ebx, bx
cmp ebx, 0xfc00
jae 0x506fa7
mov edx, edi
mov word [esi + 0x1e], di
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
mov edx, 3
mov ebx, eax
sub ebx, edx
ja 0x506f72
jmp 0x506fd8
cmp edi, dword [esi + 0x20]
je 0x506fd8
movzx edx, word [edi]
add edi, 2
mov ecx, edx
and ecx, 0xf800
cmp ecx, 0xd800
je 0x506e7a
movzx ecx, dx
cmp ecx, 0x80
jae 0x506f50
mov edx, 1
mov dword [esi + 8], 0
mov ebx, eax
sub ebx, edx
ja 0x506f72
jmp 0x506fd8
mov dword [esi + 8], 0
jmp 0x506f67
movzx edx, dx
mov dword [esi + 8], 0
cmp edx, 0x7ff
mov edx, 2
jbe 0x506f6c
mov edx, 3
mov ebx, eax
sub ebx, edx
jbe 0x506fd8
mov dword [esi + 0xc], edi
mov edi, dword [esi + 0x24]
mov dword [esi + 0x18], edx
mov edx, edi
push eax
call fcn.005065b0
add esp, 4
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
add edi, eax
add dword [esi + 0x14], eax
mov eax, ebx
mov dword [esi + 0x24], edi
mov edi, dword [esi + 0xc]
test dx, dx
jne 0x506e60
jmp 0x506ef0
movzx ecx, di
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
and edx, 0x3ff
mov dword [esi + 8], 0
shl edx, 0xa
and ecx, 0x3ff
lea ecx, [edx + ecx + 0x10000]
mov edx, 4
mov ebx, eax
sub ebx, edx
ja 0x506f72
cmp dword [esi + 0x14], 0x101
jae 0x50718d
mov edi, dword [0x6372c8]
mov ebx, dword [esi + 0x28]
xorps xmm0, xmm0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
movaps xmmword [esi + 0x80], xmm0
mov dword [esi + 0x80], 0x18
test edi, edi
jne 0x50703a
push 0x609ab4
push dword [0x6372a4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x507177
mov edi, eax
mov dword [0x6372c8], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
lea ecx, [esi + 0x80]
mov dword [esi + 0x30], 0
lea edx, [esi + 0x30]
push ecx
push edx
push 0
push ebx
push eax
call edi
cmp eax, 1
jne 0x5070d6
mov eax, dword [esi + 0x88]
mov ebx, dword [esi + 0x8c]
mov edi, 0xffffffff
mov dword [esi + 8], eax
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp word [ebx + edi*2 + 2], 0
lea edi, [edi + 1]
jne 0x507080
mov eax, dword [esi + 0x1d8]
mov dword [esi + 0x11a8], 0xffffffff
mov dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push edi
push ebx
push eax
call fcn.0051ab60
add esp, 0xc
movzx ecx, word [esi + 0x6d]
mov eax, dword [esi + 0x68]
movsd xmm0, qword [esi + 0x60]
mov word [esi + 0x10], cx
movzx ecx, byte [esi + 0x6f]
mov dword [esi + 0x78], eax
movzx eax, byte [esi + 0x6c]
movsd qword [esi + 0x70], xmm0
mov byte [esi + 0x12], cl
mov ecx, 1
jmp 0x5070e3
mov eax, dword [esi + 0x1d8]
xor ecx, ecx
mov dword [esi + 0xc], eax
mov al, 2
mov edx, dword [esi + 0x78]
movsd xmm0, qword [esi + 0x70]
mov dword [esi + 0x11a8], 0
mov dword [esi + 0x4c], edx
movzx edx, word [esi + 0x10]
movsd qword [esi + 0x44], xmm0
mov word [esi + 0x51], dx
movzx edx, byte [esi + 0x12]
mov byte [esi + 0x53], dl
mov edx, dword [esi + 8]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], edi
mov byte [esi + 0x50], al
lea eax, [esi + 0xa0]
lea ecx, [esi + 0x30]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push ecx
push dword [esi + 0x2c]
call eax
add esp, 8
cmp byte [esi + 0x50], 2
je 0x507163
mov eax, dword [esi + 0x48]
test eax, eax
je 0x507163
push 1
push eax
push dword [esi + 0x44]
call fcn.00452e30
add esp, 0xc
mov eax, dword [esi + 0x11a0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
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
push 0x609c58
push 0x100
push dword [esi + 0x14]
call fcn.005b1b20
add esp, 0xc
ud2