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

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
push 0x18
mov eax, dword [ebp + 8]
mov edi, dword [ebp]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
push 0
push eax
mov dword [esp + 0x20], edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [esp + 0x8c]
add esp, 0xc
push 0x40
pop edx
test esi, esi
je 0x586a3f
xor eax, eax
cmp dword [esi], edx
cmovge esi, eax
mov dword [esp + 0x80], esi
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
cmp ecx, edx
jle 0x586a63
push edx
push str.at_most__d_tables_in_a_join
push ebp
call fcn.00561f37
add esp, 0xc
xor eax, eax
jmp 0x5874b9
test byte [esp + 0x8c], 0x20
push ebx
mov ebx, 0x358
je 0x586ab2
xor edx, edx
inc edx
mov dword [esp + 0x14], edx
mov eax, edx
imul eax, eax, 0x60
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x50]
push 0
push eax
push edi
call fcn.00560346
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
je 0x586acb
test edi, edi
je 0x5874b6
push edi
push eax
call fcn.00560283
jmp 0x5874b4
mov eax, ecx
cmp ecx, 1
jle 0x586a7c
imul eax, ecx, 0x60
mov dword [esp + 0x14], ecx
lea ebx, [eax + 0x2ff]
and ebx, 0xfffffff8
jmp 0x586a7f
mov eax, dword [esp + 0x7c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x88]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [edi], ebp
mov dword [edi + 8], esi
or dword [edi + 0x18], 0xffffffff
or dword [edi + 0x14], 0xffffffff
mov byte [edi + 0x2c], al
mov eax, dword [ebp + 0x38]
dec eax
mov dword [ebp + 0x38], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x90]
mov word [edi + 0x28], ax
mov eax, dword [esp + 0x94]
mov word [edi + 0x2a], ax
movsx eax, word [ebp + 0x9c]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x8c]
push 0x23
mov dword [edi + 0x10], eax
lea eax, [edi + 0x2d]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x44]
add eax, 0x50
push eax
lea eax, [edi + 0x2f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
and dword [edi + 0x1f4], 0
lea ecx, [edi + ebx]
mov dword [edi + 0x1f8], 0xffffff9d
lea edx, [edi + 0x50]
mov dword [esp + 0x58], edi
lea eax, [ecx + 0x40]
mov dword [esp + 0x5c], edx
xor ebx, ebx
mov dword [esp + 0x60], ecx
mov dword [ecx + 0x38], eax
xor eax, eax
push 3
mov word [ecx + 0x30], ax
pop eax
push edi
push edx
mov word [ecx + 0x34], ax
mov dword [ecx + 0x2c], ebx
call fcn.00587522
push 0x2c
push dword [esp + 0xa4]
push edx
call fcn.0058a180
add esp, 0x2c
mov ecx, 0x100
cmp dword [esp + 0x14], ebx
jne 0x586bda
test esi, esi
je 0x586bb2
mov al, byte [esi]
mov byte [edi + 0x2d], al
test dword [esp + 0x90], ecx
je 0x586bc9
mov eax, dword [esp + 0x18]
test byte [eax + 0x50], 0x10
jne 0x586bc9
mov byte [edi + 0x2f], 1
push str.SCAN_CONSTANT_ROW
push ebx
push ebp
call fcn.00582490
add esp, 0xc
jmp 0x586c1f
mov esi, ebx
mov ebx, dword [esp + 0x7c]
add ebx, 8
mov ecx, dword [edi + 0x1f4]
mov eax, dword [ebx + 0x2c]
mov dword [edi + ecx*4 + 0x1f8], eax
lea eax, [edi + 0x50]
inc dword [edi + 0x1f4]
push eax
push ebx
push ebp
call fcn.0058a1cf
mov eax, dword [esp + 0x88]
add esp, 0xc
inc esi
add ebx, 0x48
cmp esi, dword [eax]
jl 0x586be3
mov esi, dword [esp + 0x84]
xor ebx, ebx
lea eax, [edi + 0x50]
push eax
push dword [esp + 0x80]
call fcn.00589aea
mov eax, dword [esp + 0x94]
pop ecx
pop ecx
test eax, eax
je 0x586c4d
cmp dword [eax + 0x3c], ebx
je 0x586c4d
push eax
lea eax, [edi + 0x50]
push eax
call fcn.00586931
pop ecx
pop ecx
cmp dword [ebp + 0x24], ebx
jne 0x58749f
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], ebx
cmp dword [eax + 0x14], ebx
jle 0x586d31
mov edx, ebx
mov dword [esp + 0x20], ebx
mov esi, ebx
mov eax, dword [esp + 0x44]
mov ebx, dword [eax + 0x18]
add ebx, edx
test byte [ebx + 0xa], 2
jne 0x586d15
mov eax, dword [ebx + 0x28]
or eax, dword [ebx + 0x2c]
mov ecx, dword [ebx]
mov dword [esp + 0x38], ecx
jne 0x586d15
cmp dword [esp + 0x14], eax
je 0x586ced
push 0x1c
push eax
lea eax, [esp + 0x60]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x44]
xor eax, eax
inc eax
mov dword [esp + 0x68], 0x540bba
add esp, 0xc
mov word [esp + 0x6c], ax
mov dword [esp + 0x60], 0x57721b
test ecx, ecx
je 0x586ce9
push ecx
lea eax, [esp + 0x5c]
push eax
call fcn.00586738
cmp word [esp + 0x74], 0
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
je 0x586d15
mov ecx, dword [esp + 0x38]
jmp 0x586ced
mov edx, dword [esp + 0x20]
test byte [ecx + 4], 2
je 0x586cfd
mov eax, dword [esp + 0x7c]
test byte [eax + 0x2c], 0x40
jne 0x586d15
push 0x10
push dword [edi + 0x20]
push ecx
push ebp
call fcn.00564a78
mov edx, dword [esp + 0x30]
add esp, 0x10
or word [ebx + 0xa], 4
mov eax, dword [esp + 0x44]
inc esi
add edx, 0x30
mov dword [esp + 0x20], edx
cmp esi, dword [eax + 0x14]
jl 0x586c6f
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x18]
test eax, 0x100
je 0x586d5f
test byte [ebx + 0x50], 0x10
je 0x586ef2
mov ecx, 0xfeff
and eax, ecx
and word [edi + 0x28], cx
mov dword [esp + 0x90], eax
mov esi, dword [esp + 0x88]
cmp dword [esp + 0x14], 1
jne 0x586d7c
lea eax, [esp + 0x40]
push eax
call fcn.00597a75
pop ecx
test eax, eax
jne 0x586dd4
lea eax, [esp + 0x40]
push eax
call fcn.00593fbb
pop ecx
test eax, eax
jne 0x58749f
push eax
push edi
call fcn.00596e22
cmp byte [ebx + 0x57], 0
pop ecx
pop ecx
jne 0x58749f
cmp dword [edi + 8], 0
je 0x586dc4
mov ax, word [edi + 0x34]
inc ax
movzx eax, ax
push eax
push edi
call fcn.00596e22
cmp byte [ebx + 0x57], 0
pop ecx
pop ecx
jne 0x58749f
mov eax, 0x100
test word [edi + 0x28], ax
je 0x586dd4
add word [edi + 0x34], 0xffe2
cmp dword [edi + 8], 0
jne 0x586dee
mov eax, dword [ebx + 0x20]
and eax, 0x1000
or eax, 0
je 0x586dee
push edi
call fcn.0059772a
pop ecx
cmp dword [ebp + 0x24], 0
jne 0x58749f
mov al, byte [edi + 0x2c]
or edx, 0xffffffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
cmp al, 2
jb 0x586e5c
test esi, esi
je 0x586e4c
mov eax, dword [esp + 0x90]
xor ecx, ecx
and eax, 0x400
cmp cx, ax
jne 0x586e4c
mov eax, 0x100
test dword [ebx + 0x50], eax
jne 0x586e4c
push edx
push edx
push edi
call fcn.00596192
mov dword [esp + 0x34], eax
add esp, 0xc
mov al, byte [edi + 0x2c]
movzx ecx, al
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ecx
cmp al, 2
jb 0x586e5c
test dword [ebx + 0x50], 0x80000
jne 0x586e5c
push edi
call fcn.00593b80
pop ecx
mov ecx, dword [edi]
xor esi, esi
mov ax, word [edi + 0x34]
mov dword [esp + 0x84], esi
add word [ecx + 0x9c], ax
mov eax, dword [esp + 0x90]
test al, 4
je 0x586f83
mov edx, dword [edi + 0x348]
mov ecx, dword [edx + 0x2c]
test ecx, 0x1000
jne 0x586f3a
mov dword [esp + 0x84], esi
test al, 8
je 0x586f83
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x7c]
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x2b], 1
je 0x586f87
test ecx, 0x2000
je 0x586edb
and dword [esp + 0x84], 0
test byte [esp + 0x90], 0x10
je 0x586f87
and dword [esp + 0x84], 0
test dword [ebx + 0x50], 0x8000000
jne 0x586f87
jmp 0x586f3e
push dword [esp + 0x88]
lea eax, [edi + 0x50]
push eax
push dword [esp + 0x84]
push ebp
call fcn.00545c78
add esp, 0x10
test eax, eax
je 0x586f1a
mov byte [edi + 0x2f], 1
jmp 0x586d5f
test esi, esi
jne 0x586d5f
mov esi, dword [esp + 0x88]
mov eax, 0x80
or word [edi + 0x28], ax
mov dword [edi + 8], esi
jmp 0x586d66
mov esi, dword [esp + 0x7c]
test ecx, 0x1000
sete al
and dword [esp + 0x84], 0
inc al
mov byte [edi + 0x2e], al
mov eax, dword [esi + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x586f87
and dword [esp + 0x84], 0
test cl, 0x40
je 0x586f87
mov eax, dword [esp + 0x90]
and ecx, 0xffffffbf
and eax, 8
mov dword [edx + 0x2c], ecx
mov dword [esp + 0x84], eax
jmp 0x586f87
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x58732f
lea eax, [edi + 0x348]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], eax
jmp 0x586fa7
mov ebx, dword [esp + 0x18]
movzx eax, byte [eax - 0x14]
imul eax, eax, 0x48
add eax, 8
add esi, eax
mov dword [esp + 0x30], esi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], eax
push dword [eax + 0x3c]
push ebx
call fcn.0057526e
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
test dword [edx + 0x1c], 0x4000
mov dword [esp + 0x38], eax
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
jne 0x5870f4
mov cl, byte [edx + 0x2b]
cmp cl, 2
je 0x5870f4
mov ebp, dword [esp + 0x24]
test dword [ebp + 0x2c], 0x400
mov ebp, dword [esp + 0x78]
je 0x58702d
push edx
push ebx
call fcn.00569de4
mov ebx, dword [esp + 0x18]
push 0xfffffffffffffff5
push eax
push 0
push 0
push dword [esi + 0x2c]
push 0xad
push ebx
call fcn.0057b7e0
add esp, 0x24
jmp 0x5870f0
cmp cl, 1
je 0x5870f4
mov ebx, dword [esp + 0x24]
test byte [ebx + 0x2c], 0x40
jne 0x58704a
test byte [esp + 0x90], 0x20
je 0x587054
test byte [esi + 0x24], 0x50
je 0x5870df
cmp byte [edi + 0x2e], 0
push 0x70
pop ecx
je 0x58706a
mov eax, dword [esi + 0x2c]
push 0x71
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x3c]
pop ecx
push ecx
push edx
push eax
push dword [esi + 0x2c]
push ebp
call fcn.0056d55f
add esp, 0x14
cmp byte [edi + 0x2e], 0
jne 0x5870ca
mov eax, dword [esp + 0x20]
push 0x40
pop ecx
cmp word [eax + 0x22], cx
jge 0x5870ca
test byte [eax + 0x1c], 0xe0
jne 0x5870ca
test dword [ebx + 0x2c], 0x404000
jne 0x5870ca
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
xor esi, esi
jmp 0x5870ac
shrd edx, ecx, 1
shr ecx, 1
inc esi
mov eax, edx
or eax, ecx
jne 0x5870a5
mov ebx, dword [esp + 0x10]
push 0xfffffffffffffffd
push esi
push 0xffffffffffffffff
push ebx
call fcn.0057bab2
mov esi, dword [esp + 0x40]
add esp, 0x10
jmp 0x5870ce
mov ebx, dword [esp + 0x10]
push dword [esp + 0x84]
push ebx
call fcn.0057bb2b
pop ecx
pop ecx
jmp 0x5870f0
push dword [edx]
push 0
push dword [edx + 0x14]
push eax
push ebp
call fcn.00578768
add esp, 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
test dword [eax + 0x2c], 0x200
je 0x587224
test byte [edx + 0x1c], 0x80
mov ebx, dword [eax + 0x20]
mov dword [esp + 0x34], 0x70
je 0x587138
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x90]
jne 0x58713f
test al, 0x20
je 0x58713f
mov eax, dword [esp + 0x1c]
mov esi, dword [eax - 0x4c]
xor eax, eax
jmp 0x5871d1
mov eax, dword [esp + 0x90]
cmp byte [edi + 0x2e], 0
je 0x587168
mov eax, dword [esi + 0x10]
mov esi, dword [esp + 0x94]
mov eax, dword [eax + 8]
jmp 0x58715c
cmp eax, ebx
je 0x587160
mov eax, dword [eax + 0x14]
inc esi
test eax, eax
jne 0x587154
push 0x71
pop eax
mov dword [edi + 0x18], esi
jmp 0x5871d1
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x58717e
test al, 0x20
je 0x58717e
push 0x65
mov esi, ecx
pop eax
jmp 0x5871d1
mov esi, dword [ebp + 0x28]
lea eax, [esi + 1]
mov dword [ebp + 0x28], eax
test dword [ebx + 0x38], 0x1000
je 0x5871ac
mov eax, dword [esp + 0x18]
test dword [eax + 0x50], 0x1000000
jne 0x5871ac
push dword [esp + 0x30]
push esi
push ebx
push ebp
call fcn.00593903
add esp, 0x10
cmp dword [ebx + 0x24], 0
je 0x5871cd
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 0x10
jne 0x5871cd
push eax
push esi
push 0
push dword [ebx + 0x24]
push ebx
push ebp
call fcn.00596468
add esp, 0x18
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 0x48], esi
test eax, eax
je 0x587224
push dword [esp + 0x38]
push dword [ebx + 0x2c]
push esi
mov esi, dword [esp + 0x1c]
push eax
push esi
call fcn.0057b786
push ebx
push ebp
call fcn.00584c34
mov eax, dword [esp + 0x40]
add esp, 0x1c
test byte [eax + 0x2c], 0xf
je 0x587228
test dword [eax + 0x2c], 0x188002
jne 0x587228
test byte [edi + 0x28], 1
jne 0x587228
cmp byte [edi + 0x2f], 2
je 0x587228
push 2
push esi
call fcn.0057bb2b
pop ecx
pop ecx
jmp 0x587228
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
test eax, eax
js 0x587239
push eax
push ebp
call fcn.0055e161
pop ecx
pop ecx
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 0x10
je 0x587311
push 0
push 0x14
push edi
call fcn.00589db4
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [eax - 0x18], ebx
test ebx, ebx
je 0x587315
mov ecx, dword [ebp + 0x28]
mov dword [ebx], ecx
mov eax, dword [ebp + 0x2c]
inc dword [ebp + 0x28]
inc eax
push eax
push 0x10000
push 0x4d
mov dword [ebp + 0x2c], eax
push esi
mov dword [ebx + 4], eax
call fcn.0057b76b
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
push eax
push 0
push 0x4b
push esi
mov dword [ebx + 8], eax
call fcn.0057b76b
mov eax, dword [esp + 0x40]
add esp, 0x20
test byte [eax + 0x1c], 0x80
jne 0x5872dd
push 1
push dword [ebx]
push 0x76
push esi
call fcn.0057b76b
push 0
push 1
push dword [ebp]
call fcn.0056bfb6
add esp, 0x1c
test eax, eax
je 0x587301
mov ecx, dword [eax + 0x10]
and dword [eax + 0x14], 0
push 0xfffffffffffffff8
push eax
push esi
mov byte [ecx], 0
call fcn.0057ba0b
add esp, 0xc
jmp 0x587301
push eax
call fcn.00572edd
mov esi, eax
movzx ecx, word [esi + 0x32]
push ecx
push dword [ebx]
push 0x76
push dword [esp + 0x20]
call fcn.0057b76b
push esi
push ebp
call fcn.00584c34
add esp, 0x1c
mov eax, dword [esp + 0x24]
and dword [eax + 0x2c], 0xffffffbf
mov byte [edi + 0x2d], 0
mov byte [edi + 0x2f], 3
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x7c]
add eax, 0x60
sub dword [esp + 0x3c], 1
mov dword [esp + 0x1c], eax
jne 0x586fa3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x58749f
xor esi, esi
mov dword [esp + 0x84], esi
test ecx, ecx
jle 0x587491
lea ecx, [edi + 0x50]
lea ebx, [edi + 0x2f8]
cmp dword [ebp + 0x24], 0
jne 0x58749f
mov eax, dword [ebx + 0x50]
mov edx, dword [esp + 0x7c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x3c], eax
movzx eax, byte [ebx + 0x3c]
imul eax, eax, 0x48
mov dword [esp + 0x78], eax
test byte [eax + edx + 0x30], 0x10
je 0x5873f6
test byte [eax + edx + 0x30], 8
je 0x5873aa
push dword [eax + edx + 0x20]
push dword [eax + edx + 0x24]
push 0xa
push dword [esp + 0x1c]
call fcn.0057b76b
add esp, 0x10
jmp 0x5873f3
push 0xf
push dword [esp + 0x14]
call fcn.0057b73c
mov ecx, dword [esp + 0x84]
mov esi, eax
mov eax, dword [esp + 0x80]
push dword [eax + ecx + 0x20]
push dword [eax + ecx + 0x24]
push 0xa
push dword [esp + 0x24]
call fcn.0057b76b
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.0058273c
mov ecx, dword [edx + 0x6c]
add esp, 0x20
mov esi, dword [esp + 0x84]
mov dword [eax + 8], ecx
lea ecx, [edi + 0x50]
mov eax, dword [esp + 0x3c]
test eax, 0x404000
je 0x587437
test eax, 0x4000
je 0x58741a
push ebx
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
push ebp
call fcn.0053c396
jmp 0x58742a
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ebx
push esi
push edi
call fcn.0055eaa0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp byte [eax + 0x57], 0
jne 0x58749f
push dword [esp + 0x90]
push ebx
push dword [esp + 0x84]
push ebp
call fcn.0058984d
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x3c]
push ebx
mov eax, dword [ecx + 0x6c]
push esi
push edi
push ecx
push ebp
mov dword [ebx + 0x20], eax
call fcn.00587548
add esp, 0x2c
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x18]
lea ecx, [edi + 0x50]
inc esi
mov dword [esp + 0x2c], edx
add ebx, 0x60
mov dword [edi + 0x1c], eax
mov dword [esp + 0x84], esi
cmp esi, dword [esp + 0x14]
jl 0x587361
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x3c], eax
mov eax, edi
jmp 0x5874b8
mov ax, word [edi + 0x24]
push edi
push dword [esp + 0x1c]
mov word [ebp + 0x9c], ax
call fcn.00593e10
pop ecx
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x64
ret