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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74b1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x7c]
test eax, eax
jle 0x585b51
dec eax
mov dword [esi + 0x7c], eax
test eax, eax
jg 0x585b51
push 0xc
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
mov eax, dword [esi + 0x78]
test eax, eax
jle 0x585b68
dec eax
mov dword [esi + 0x78], eax
test eax, eax
jg 0x585b68
push 0xb
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x10], 0
test ebx, ebx
je 0x585f97
mov eax, dword [ebx + 4]
mov edi, 1
cmp eax, 0x15
ja case.0x585b88.0
jmp dword [eax*4 + 0x585fc8]
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x10], eax
test eax, 0x100
jne 0x585bb3
mov eax, dword [esi]
cmp eax, dword [esi + 0x4c]
jne 0x585bb3
mov eax, dword [ebp - 0x10]
and eax, 0xffffff01
mov dword [ebp - 0x10], eax
jmp 0x585f80
mov eax, dword [esi]
cmp byte [eax - 1], 0xa
setne al
mov dword [ebp - 0x10], eax
jmp 0x585f80
mov eax, dword [esi]
cmp eax, dword [esi + 0x50]
jne 0x585bda
mov eax, dword [esi + 0x60]
shr eax, 1
and al, 1
mov dword [ebp - 0x10], eax
jmp 0x585f80
cmp byte [eax], 0xa
setne al
mov dword [ebp - 0x10], eax
jmp 0x585f80
mov ecx, esi
call fcn.005856e0
mov ecx, dword [ebx + 8]
and ecx, 1
cmp al, cl
sete al
mov dword [ebp - 0x10], eax
jmp 0x585f80
mov eax, dword [esi]
cmp eax, dword [esi + 0x50]
je 0x585f93
mov cl, byte [eax]
cmp cl, 0xa
je 0x585f93
cmp cl, 0xd
je 0x585f93
inc eax
mov dword [esi], eax
jmp case.0x585b88.1
push dword [esi + 0x5c]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
push dword [esi + 0x70]
mov edx, dword [esi + 0x50]
add eax, ecx
push eax
push ecx
mov ecx, dword [esi]
call fcn.00587540
add esp, 0x10
cmp eax, dword [esi]
je 0x585f93
mov dword [esi], eax
jmp case.0x585b88.1
mov eax, dword [esi]
cmp eax, dword [esi + 0x50]
je 0x585f93
test dword [esi + 0x5c], 0x100
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
je 0x585c80
mov eax, dword [esi + 0x70]
push dword [ebp - 0x14]
mov ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::ctype_char_::tolower_char_const]
mov byte [ebp - 0x14], al
mov edi, dword [esi]
lea eax, [edi + 1]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x585ca7
mov edx, dword [esi + 0x50]
mov ecx, edi
push eax
call fcn.00588520
add esp, 4
cmp eax, edi
je 0x585ca7
mov edx, eax
mov cl, 1
jmp 0x585d1e
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x18], edx
test edx, edx
je 0x585cf4
test dword [esi + 0x5c], 0x800
je 0x585ccf
push dword [ebp - 0x14]
mov ecx, dword [esi + 0x70]
call fcn.00583b60
mov edx, dword [ebp - 0x18]
mov cl, al
mov ch, byte [ebp - 0x14]
jmp 0x585cd4
mov ch, byte [ebp - 0x14]
mov cl, ch
mov edi, dword [edx + 4]
xor eax, eax
test edi, edi
je 0x585cf7
mov edx, dword [edx + 8]
cmp byte [edx + eax], cl
ja 0x585ceb
cmp cl, byte [edx + eax + 1]
jbe 0x585d15
add eax, 2
cmp eax, edi
jb 0x585ce0
jmp 0x585cf7
mov ch, byte [ebp - 0x14]
mov edi, dword [ebx + 0x18]
movzx edx, ch
test edi, edi
je 0x585d19
mov ecx, edx
mov eax, 1
and ecx, 7
shr edx, 3
shl eax, cl
test byte [edx + edi], al
je 0x585d19
mov cl, 1
jmp 0x585d1b
xor cl, cl
mov edx, dword [ebp + 8]
mov al, byte [ebx + 8]
and al, 1
cmp cl, al
je 0x585f93
mov dword [esi], edx
mov byte [ebp - 0x10], 0
jmp 0x585f84
mov ecx, dword [esi]
lea edi, [esi + 4]
cmp eax, 0xb
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x2c]
push edi
sete bl
call fcn.00584fe0
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
push dword [eax + 0x14]
call fcn.00585b10
cmp al, bl
jne 0x585d9d
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x585d97
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, ecx
sar eax, 2
push eax
push ecx
mov ecx, edi
call fcn.00541950
mov eax, dword [ebp - 0x18]
mov dword [edi + 0xc], eax
mov byte [ebp - 0x10], 1
jmp 0x585da2
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004814c0
mov ebx, dword [ebp + 8]
jmp case.0x585b88.1
mov edx, dword [ebx + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
mov dword [ecx + edx*8], eax
mov edi, dword [esi + 0x10]
cmp dword [ebx + 0x14], edi
jae case.0x585b88.1
mov eax, dword [esi + 4]
dec edi
mov ecx, edi
shr ecx, 5
lea edx, [eax + ecx*4]
mov ecx, edi
mov eax, dword [edx]
and ecx, 0x1f
btr eax, ecx
mov dword [edx], eax
cmp dword [ebx + 0x14], edi
jb 0x585dd0
jmp case.0x585b88.1
cmp byte [esi + 0x65], 0
mov edi, dword [ebx + 0x14]
jne 0x585e05
cmp dword [edi + 0x14], 0
je case.0x585b88.1
mov edx, dword [edi + 0x14]
mov ecx, edx
mov eax, dword [esi + 4]
and edx, 0x1f
shr ecx, 5
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
bts eax, edx
mov dword [ecx], eax
mov edx, dword [edi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
mov dword [ecx + edx*8 + 4], eax
jmp case.0x585b88.1
mov edi, dword [ebx + 0x14]
mov ecx, edi
mov eax, dword [esi + 4]
shr ecx, 5
lea edx, [eax + ecx*4]
mov ecx, edi
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [edx], eax
je case.0x585b88.1
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
mov edx, dword [eax + edi*8]
mov eax, dword [eax + edi*8 + 4]
cmp edx, eax
je 0x585e7d
push dword [esi + 0x5c]
push dword [esi + 0x70]
push eax
push edx
mov edx, dword [esi + 0x50]
call fcn.00587540
mov ecx, eax
add esp, 0x10
cmp ecx, dword [esi]
je 0x585f93
mov dword [esi], ecx
jmp case.0x585b88.1
push ebx
mov ecx, esi
call fcn.00587030
mov edx, dword [ebp - 0x10]
test al, al
movzx ecx, dl
cmove ecx, edi
mov byte [ebp - 0x10], cl
jmp case.0x585b88.12
mov eax, dword [ebx + 8]
mov ecx, esi
shr eax, 1
and al, 1
push 0
movzx eax, al
push eax
push ebx
call fcn.00587250
mov edx, dword [ebp - 0x10]
test al, al
movzx ecx, dl
cmove ecx, edi
mov byte [ebp - 0x10], cl
jmp case.0x585b88.12
mov edx, dword [ebx + 0x14]
cmp dword [edx + 0x24], 0
jne case.0x585b88.12
mov ecx, dword [edx + 0x20]
mov eax, dword [esi + 0x40]
push dword [eax + ecx*8]
mov eax, dword [edx + 8]
mov ecx, esi
shr eax, 1
and al, 1
movzx eax, al
push eax
push edx
call fcn.00587250
mov edx, dword [ebp - 0x10]
test al, al
movzx ecx, dl
cmove ecx, edi
mov byte [ebp - 0x10], cl
jmp case.0x585b88.12
test dword [esi + 0x60], 0x2020
je 0x585f10
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi]
je 0x585f1d
cmp byte [esi + 0x74], 0
je 0x585f23
mov eax, dword [esi]
cmp eax, dword [esi + 0x50]
je 0x585f23
mov byte [ebp - 0x10], 1
jmp case.0x585b88.12
cmp byte [esi + 0x64], 0
je 0x585f34
mov ecx, esi
call fcn.005874a0
test al, al
je case.0x585b88.12
mov eax, dword [esi]
lea edi, [esi + 4]
lea ebx, [esi + 0x24]
mov dword [esi + 0x20], eax
cmp ebx, edi
je 0x585f5c
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
sar eax, 2
push eax
push ecx
mov ecx, ebx
call fcn.00541950
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x14]
lea ecx, [esi + 0x34]
cmp ecx, eax
je 0x585f77
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 3
push eax
push edx
call fcn.00586420
mov byte [esi + 0x64], 1
xor ebx, ebx
mov eax, dword [ebp - 0x10]
test al, al
jne 0x585f97
test ebx, ebx
je 0x585f97
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
jmp 0x585b6f
mov byte [ebp - 0x10], 1
mov eax, dword [esi + 0x7c]
test eax, eax
jle 0x585fa2
inc eax
mov dword [esi + 0x7c], eax
cmp byte [ebp - 0x10], 0
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xd
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
lea ecx, [ecx]
mov ebp, 0x7d00585f
pop edi
pop eax
add byte [edi - 0x3bffa7a5], cl
pop ebx
pop eax
add al, ch
pop ebx
pop eax
add byte [edx], al
pop esp
pop eax
add byte [ecx], ch
pop esp
pop eax
add byte [ebp + 0x5c], dl
pop eax
add byte [ebp + 0x5f], bh
pop eax
add byte [ebp + 0x5f], bh
pop eax
add byte [esi], dh
pop ebp
pop eax
add byte [esi], dh
pop ebp
pop eax
add byte [ebx + 0x5f], bh
pop eax
add byte [ecx - 0xdffa7a3], bh
pop ebp
pop eax
add byte [esi], ch
pop esi
pop eax
add byte [esi + ebx*2 + 0x5f7d0058], al
pop eax
add byte [edi - 0x38ffa7a2], bl
pop esi
pop eax
add byte [ebp + 0x5f], bh
pop eax
add byte [eax], al
pop edi
pop eax
add byte [ebx + 0x448b18ec], al
sub esp, 0x18
mov eax, dword [esp + 0x2c]