Function at 0x4157b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push reloc.kernel32.dll_FileTimeToLocalFileTime
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x52bd60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x70], eax
mov edi, ecx
and dword [ebp - 0x1c], 0xfffffe00
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x60]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x60], eax
mov eax, dword [0x530ce4]
mov dword [ebp - 0x5c], 0
test al, 1
jne 0x41583f
or eax, 1
push 0x4e04e0
mov dword [0x530ce4], eax
mov dword [0x530c68], 0x518430
call fcn.004b4d59
add esp, 4
mov ecx, dword [0x52d374]
push 0xffffffffffffffff
mov eax, dword [ecx]
push str.success
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push ecx
push str.error
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0044aa00
mov ecx, eax
call fcn.0044a020
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00449f60
mov byte [ebp - 4], 3
mov al, byte [edi + 8]
test al, al
je 0x4158a3
cmp al, 7
je 0x4158a3
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b708c
add esp, 0xc
cmp byte [edi + 8], 0
je 0x415b62
mov dword [ebp - 0x60], str.callbackId
mov dword [ebp - 0x5c], 0
mov ebx, dword [edi]
lea eax, [ebp - 0x60]
push eax
mov ecx, ebx
call fcn.0044b6a0
mov ecx, dword [ebx]
cmp eax, ecx
je 0x415907
mov esi, dword [eax + 0x10]
mov edx, str.callbackId
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4158f6
test bl, bl
je 0x4158f2
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4158f6
add edx, 2
add esi, 2
test bl, bl
jne 0x4158d6
xor edx, edx
jmp 0x4158fb
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x50], eax
test dl, dl
je 0x41590a
mov dword [ebp - 0x50], ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x50]
mov eax, dword [eax]
mov byte [ebp - 4], 3
cmp eax, dword [ecx]
je 0x415b62
add eax, 0x18
cmp eax, 0x530a10
je 0x415b62
push reloc.kernel32.dll_GetUserDefaultLangID
call fcn.004b45a0
add esp, 4
mov esi, eax
test esi, esi
je 0x41594f
mov byte [esi + 8], 0
and dword [esi + 8], 0xfffffeff
mov dword [esi + 0xc], 0
jmp 0x415951
xor esi, esi
push edi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0044a020
mov eax, dword [0x530408]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 0x8000000f
jns 0x415975
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 0xb
jne 0x415990
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, reloc.kernel32.dll_ReleaseSRWLockExclusive
div ecx
inc edx
mov dword [0x530408], edx
lea eax, [ebp - 0x28]
push eax
push 0
push esi
push reloc.kernel32.dll_GetLocaleInfoA
push 0
push 0
mov dword [ebp - 0x28], 0
call fcn.004b59cd
add esp, 0x18
test eax, eax
jne 0x415b56
test esi, esi
je 0x4159cb
mov ecx, esi
call fcn.00449f60
push esi
call fcn.004b458c
add esp, 4
mov dword [ebp - 0x4c], 0
call fcn.004b5927
mov edx, dword [eax]
lea ecx, [ebp - 0x74]
call fcn.00431d20
push eax
mov edx, str.writeFile_beginthreadex_
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], reloc.kernel32.dll_ReleaseActCtx
call fcn.00426d80
add esp, 4
mov byte [ebp - 4], reloc.kernel32.dll_GetUserDefaultLangID
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x415a19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
call fcn.0040c810
test al, al
jne 0x415a32
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push str.writeFile
lea ecx, [ebp - 0x50]
call fcn.004036e0
mov byte [ebp - 4], reloc.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x6c], esi
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], reloc.kernel32.dll_SetSystemTime
call fcn.00431c80
add esp, 4
mov ebx, eax
push str.GlobalLog
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], reloc.kernel32.dll_OpenSemaphoreW
call fcn.004036e0
push 2
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x530768
mov byte [ebp - 4], reloc.kernel32.dll_SetConsoleCursorPosition
call fcn.004018b0
mov byte [ebp - 4], reloc.kernel32.dll_OpenSemaphoreW
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415ab8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_SetSystemTime
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415ad8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], reloc.kernel32.dll_GetDiskFreeSpaceA
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415af5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_GetUserDefaultLangID
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415b15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x8c]
call fcn.00431ab0
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], reloc.kernel32.dll_GetConsoleOutputCP
call fcn.00449d70
push ecx
push str.error
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], reloc.kernel32.dll_OpenEventW
call fcn.0044aa00
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.0044a020
mov byte [ebp - 4], reloc.kernel32.dll_GetConsoleOutputCP
jmp 0x415c9c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415dc2
push str.writeFile_callbackId_not_exist
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
call fcn.004036e0
push str.writeFi1e
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.004036e0
mov byte [ebp - 4], 6
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00431c80
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 8
call fcn.004036e0
push 2
push edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x530768
mov byte [ebp - 4], 9
call fcn.004018b0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x415c03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415c23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415c40
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415c60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x8c]
call fcn.00431ab0
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.00449d70
push ecx
push str.error
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], reloc.kernel32.dll_ConvertDefaultLocale
call fcn.0044aa00
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.0044a020
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call fcn.00449f60
cmp dword [ebp - 0x78], 0x10
jb 0x415cb8
push dword [ebp - 0x8c]
call fcn.004b458c
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415dcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
jmp 0x415dcc
or edi, 0xffffffff
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], 0x5149b4
mov dword [ebp - 0x30], reloc.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], reloc.kernel32.dll_CopyFileA
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], reloc.kernel32.dll_ReadProcessMemory
call fcn.0044cc00
mov edx, eax
mov byte [ebp - 4], reloc.kernel32.dll_GetStringTypeA
cmp dword [edx + 0x14], 0x10
jb 0x415e25
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], reloc.kernel32.dll_UnmapViewOfFile
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x415e44
xor ecx, ecx
jmp 0x415e5a
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415e50
sub ecx, dword [ebp - 0x58]
push ecx
push edx
mov ecx, ebx
call fcn.004012e0
lea ecx, [ebp - 0x5c]
call fcn.004319e0
add esp, 0x18
mov byte [ebp - 4], reloc.kernel32.dll_CreateProcessA
mov edx, dword [eax]
lea ebx, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x415ec2
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x415eb3
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x415eb3
call fcn.00404770
mov dword [ebp - 0x58], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x415eab
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [ebp - 0x58]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
jmp 0x415ec2
push dword [edx - 0xc]
lea ecx, [ebp - 0x4c]
push edx
call fcn.004046b0
mov esi, dword [ebp - 0x4c]
mov byte [ebp - 4], reloc.kernel32.dll_GetStringTypeA
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415ee2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_ReadProcessMemory
cmp dword [ebp - 0x78], 0x10
jb 0x415efa
push dword [ebp - 0x8c]
call fcn.004b458c
add esp, 4
mov ebx, dword [ebp - 0x70]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x415f18
call fcn.0040c710
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], reloc.kernel32.dll_CopyFileA
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x415f36
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x48], 0x5149b4
jb 0x415f4e
push dword [ebp - 0x44]
call fcn.004b458c
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], reloc.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0x5185e8
mov dword [ebp - 4], 0xffffffff
call fcn.00449f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b4591
mov esp, ebp
pop ebp
ret