Function at 0x481780
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4873b4
mov eax, dword fs:[0]
push eax
sub esp, 0xb5c
mov eax, dword [0x4f9490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xb60], eax
mov eax, dword [0x4f95b4]
mov dword [ebp - 0xb5c], esi
mov dword [ebp - 0xb54], ecx
test eax, eax
jne 0x4817f1
push eax
push 1
push eax
push 0xa2
push str.Native
push str.shared::Logging::MPLogImpl
call fcn.00485750
add esp, 0x18
mov dword [0x4f95b4], eax
push eax
call fcn.00485a10
mov edi, eax
add esp, 4
mov dword [ebp - 0xb64], edi
mov eax, dword [0x4f95b0]
mov dword [ebp - 4], 0
mov dword [ebp - 0xb58], eax
test eax, eax
jne 0x48184d
push 0x158
call fcn.00485ed0
add esp, 4
mov dword [ebp - 0xb4c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x48183c
mov ecx, eax
call fcn.00480da0
jmp 0x48183e
xor eax, eax
mov dword [ebp - 0xb58], eax
mov byte [ebp - 4], 0
mov dword [0x4f95b0], eax
mov eax, dword [ebp - 0xb5c]
mov esi, dword [esi + 0xd0]
mov ecx, dword [eax + 0xd4]
mov dword [ebp - 0xb4c], ecx
cmp esi, ecx
je 0x4818bf
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x48187a
mov eax, dword [esi]
mov ecx, dword [ebp - 0xb60]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4818a0
test dl, dl
je 0x48189c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4818a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x481880
xor eax, eax
jmp 0x4818a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4818b9
add esi, 0x18
cmp esi, dword [ebp - 0xb4c]
jne 0x481870
jmp 0x482055
mov eax, dword [ebp - 0xb5c]
mov esi, dword [ebp - 0xb54]
cmp esi, dword [eax + 0xcc]
jg 0x482055
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x290]
push 0x200
push eax
call fcn.004807f0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
add esp, 0x1c
cmp esi, 3
ja case.default.0x481902
jmp dword [esi*4 + 0x48208c]
mov dword [ebp - 0xb4c], str.Error
jmp 0x481964
mov dword [ebp - 0xb4c], str.Warning
jmp 0x481964
mov dword [ebp - 0xb4c], str.Info
mov byte [ebp - 0xb4d], 0
jmp 0x48196b
mov dword [ebp - 0xb4c], str.Debug
mov byte [ebp - 0xb4d], 0
jmp 0x48196b
mov eax, esi
mov byte [ebp - 0xb4d], 0
mov dword [ebp - 0xb4c], str.Unknown
sub eax, 0
je 0x481964
sub eax, 1
jne 0x48196b
mov byte [ebp - 0xb4d], 1
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0xa98]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea eax, [ebp - 0xa98]
push eax
lea eax, [ebp - 0xacc]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov ecx, dword [0x4f974c]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
lea esi, [eax + 8]
lea eax, [ebp - 0xacc]
push eax
push str.__H:_M:_S_
push 0x80
push esi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
push dword [ebp - 0xb4c]
mov eax, dword [ebp - 0xb58]
push dword [eax + 0x14c]
push dword [eax + 0x148]
lea eax, [ebp - 0x90]
push esi
push str._s___08lld____s_
push eax
call fcn.00480ba0
add esp, 0x40
lea eax, [ebp - 0xa90]
push 0x800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0xb60]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa90]
push str._s__s___s_n
push eax
call fcn.00480be0
mov esi, dword [ebp - 0xb58]
add esi, 0xf0
push esi
mov dword [ebp - 0xb68], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 0x24
test eax, eax
jne 0x482084
mov eax, dword [ebp - 0xb5c]
cmp dword [eax + 0xec], 0x96
jb 0x481aa2
mov ecx, dword [eax + 0xe4]
dec ecx
and ecx, dword [eax + 0xe8]
mov eax, dword [eax + 0xe0]
mov ecx, dword [eax + ecx*4]
call fcn.004813e0
mov eax, dword [ebp - 0xb5c]
add dword [eax + 0xec], 0xffffffff
jne 0x481a9c
mov dword [eax + 0xe8], 0
jmp 0x481aa2
inc dword [eax + 0xe8]
mov dword [ebp - 0xad8], 0
mov dword [ebp - 0xac0], 0
mov dword [ebp - 0xac8], 0
mov dword [ebp - 0xac4], 0xf
mov byte [ebp - 0xad8], 0
mov dword [ebp - 0xab0], 0
mov dword [ebp - 0xaac], 0xf
mov byte [ebp - 0xac0], 0
mov edx, dword [ebp - 0xb60]
mov ecx, dword [ebp - 0xb54]
mov byte [ebp - 4], 5
mov dword [ebp - 0xadc], ecx
test edx, edx
je 0x481b2b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xb4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481b11
sub ecx, dword [ebp - 0xb4c]
push ecx
push edx
lea ecx, [ebp - 0xad8]
call fcn.00480170
lea ecx, [ebp - 0x290]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481b34
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0xac0]
call fcn.00480170
mov edx, dword [ebp - 0xb5c]
add edx, 0xdc
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xb4c], eax
inc eax
cmp ecx, eax
ja 0x481b8e
push 1
mov ecx, edx
call fcn.00482410
mov edx, dword [ebp - 0xb5c]
add edx, 0xdc
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xb4c], eax
mov edi, dword [ebp - 0xb64]
lea eax, [ecx - 1]
and dword [edx + 0xc], eax
dec ecx
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xb4c]
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xb4c], eax
cmp dword [ecx + eax], 0
jne 0x481bed
push 0x34
call fcn.00485ed0
mov edx, dword [ebp - 0xb5c]
add esp, 4
mov edi, dword [ebp - 0xb4c]
mov ecx, dword [edx + 0xe0]
mov dword [edi + ecx], eax
mov ecx, dword [edx + 0xe0]
mov edi, dword [ebp - 0xb64]
mov eax, dword [ebp - 0xb4c]
mov ecx, dword [ecx + eax]
mov eax, dword [ebp - 0xadc]
mov dword [ebp - 0xb4c], ecx
mov dword [ebp - 0xa94], ecx
mov dword [ecx], eax
lea eax, [ebp - 0xad8]
push eax
add ecx, 4
call fcn.00480d10
mov ecx, dword [ebp - 0xb4c]
lea eax, [ebp - 0xac0]
push eax
add ecx, 0x1c
mov byte [ebp - 4], 6
call fcn.00480d10
mov eax, dword [ebp - 0xb5c]
xorps xmm0, xmm0
push 0xfffffffffffffff5
mov byte [ebp - 4], 5
movups xmmword [ebp - 0xaf4], xmm0
inc dword [eax + 0xec]
mov dword [ebp - 0xae4], 0
mov word [ebp - 0xae0], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0xaf4]
mov dword [ebp - 0xb4c], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push str.Consolas
lea eax, [ebp - 0xb34]
mov dword [ebp - 0xb48], 0x54
push 0x20
push eax
mov dword [ebp - 0xb44], 0
mov dword [ebp - 0xb40], 0xe0000
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0xb38], 0x190
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 0xb38], 0x190
lea eax, [ebp - 0xb48]
push eax
push 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
mov eax, dword [ebp - 0xb54]
test eax, eax
jne 0x481cee
push 0xc
jmp 0x481cf5
cmp eax, 1
jne 0x481d15
push 0xe
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea eax, [ebp - 0xa90]
push eax
call fcn.004832b0
add esp, 4
jmp 0x481e22
mov eax, dword [ebp - 0xb60]
mov dword [ebp - 0xa9c], 0xb000a
mov dword [ebp - 0xa98], 0xf000c
mov dword [ebp - 0xa94], 0x9000d
test eax, eax
je 0x481d62
mov dl, byte [eax]
test dl, dl
je 0x481d5b
inc eax
push eax
call fcn.00480af0
mov ecx, eax
add esp, 4
shl ecx, 5
add ecx, eax
movsx eax, dl
add ecx, eax
jmp 0x481d64
mov ecx, 0x1505
jmp 0x481d64
xor ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
lea eax, [edx + edx*2]
add eax, eax
sub ecx, eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0xb5c], ecx
call fcn.004832b0
add esp, 4
mov dword [ebp - 0xb38], 0x320
lea eax, [ebp - 0xb48]
push eax
push 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
mov ecx, dword [ebp - 0xb5c]
movzx eax, word [ebp + ecx*2 - 0xa9c]
push eax
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push dword [ebp - 0xb60]
push str.__s_
call fcn.004832b0
add esp, 8
mov dword [ebp - 0xb38], 0x190
lea eax, [ebp - 0xb48]
push eax
push 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
push dword [ebp - 0xaec]
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea eax, [ebp - 0x290]
push eax
push 0x4aa968
call fcn.004832b0
add esp, 8
push dword [ebp - 0xaec]
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0xb58]
cmp dword [eax + 0x58], 0
lea ecx, [eax + 8]
mov dword [ebp - 0xb60], ecx
je 0x481e96
lea eax, [ebp - 0xa90]
push eax
push ecx
call fcn.00480830
add esp, 8
cmp byte [ebp - 0xb4d], 0
jne 0x481e84
mov ecx, dword [0x4f95b8]
mov eax, 0x88888889
inc ecx
mul ecx
mov dword [0x4f95b8], ecx
shr edx, 3
mov eax, edx
shl eax, 4
sub eax, edx
sub ecx, eax
jne 0x481e90
mov ecx, dword [ebp - 0xb60]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::flush_void_]
mov eax, dword [ebp - 0xb58]
cmp dword [ebp - 0xb54], 0
jne 0x482041
cmp dword [eax + 0xc8], 3
jb 0x481f39
mov ecx, dword [eax + 0xc0]
dec ecx
and ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xbc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xb54], eax
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x481f01
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x481ef1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481f2d
mov eax, edx
push ecx
push eax
call fcn.00485f00
mov eax, dword [ebp - 0xb54]
add esp, 8
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0xb58]
add dword [eax + 0xc8], 0xffffffff
jne 0x481f33
mov dword [eax + 0xc4], 0
jmp 0x481f39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
inc dword [eax + 0xc4]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0xaa8], 0
mov dword [ebp - 0xa98], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xa94], 0xf
mov byte [ebp - 0xaa8], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481f67
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0xaa8]
call fcn.00480170
mov edx, dword [ebp - 0xb58]
add edx, 0xb8
mov byte [ebp - 4], 7
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xb54], eax
inc eax
cmp ecx, eax
ja 0x481fc5
push 1
mov ecx, edx
call fcn.00482270
mov edx, dword [ebp - 0xb58]
add edx, 0xb8
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xb54], eax
mov edi, dword [ebp - 0xb64]
lea eax, [ecx - 1]
and dword [edx + 0xc], eax
dec ecx
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xb54]
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xb54], eax
cmp dword [ecx + eax], 0
jne 0x482024
push 0x18
call fcn.00485ed0
mov edx, dword [ebp - 0xb58]
add esp, 4
mov edi, dword [ebp - 0xb54]
add edx, 0xb8
mov ecx, dword [edx + 4]
mov dword [edi + ecx], eax
mov ecx, dword [edx + 4]
mov edi, dword [ebp - 0xb64]
mov eax, dword [ebp - 0xb54]
mov eax, dword [ecx + eax]
movups xmm0, xmmword [ebp - 0xaa8]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0xa98]
movq qword [eax + 0x10], xmm0
inc dword [edx + 0x10]
lea ecx, [ebp - 0xadc]
call fcn.004813e0
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov dword [ebp - 4], 8
test edi, edi
je 0x482069
push edi
call fcn.00485ad0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00486160
mov esp, ebp
pop ebp
ret
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
or dword [ecx], ebx
dec eax
add byte [0x21004819], dl
sbb dword [eax], ecx
xor al, 0x19
dec eax
add ah, cl
int3