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

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x58]
push ebx
xor ebx, ebx
push ebp
mov ecx, dword [edx]
xor ebp, ebp
mov dword [esp + 8], ebx
inc ebp
push esi
push edi
mov eax, dword [ecx + 0x78]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov word [esp + 0x38], bx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ecx
cmp dword [ecx + 0xc8], ebp
jle 0x582250
mov esi, dword [esp + 0x6c]
mov al, byte [esi]
test al, al
je 0x58247d
mov edi, esi
inc esi
cmp al, 0xa
je 0x582221
mov al, byte [esi]
test al, al
jne 0x582216
push 3
lea eax, [esp + 0x28]
push 0x65b0f0
push eax
call fcn.005276d9
mov eax, esi
sub eax, edi
push eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.005276d9
mov al, byte [esi]
add esp, 0x18
test al, al
jne 0x582214
jmp 0x58246b
cmp word [edx + 0x10], bx
jne 0x582276
push dword [esp + 0x6c]
call fcn.00578223
push eax
push dword [esp + 0x74]
lea eax, [esp + 0x30]
push eax
call fcn.005276d9
add esp, 0x10
jmp 0x58246b
mov edi, dword [esp + 0x6c]
cmp byte [edi], bl
je 0x58247d
xor ebp, ebp
mov ebx, edi
xor esi, esi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00569788
cmp dword [esp + 0x20], 0x9c
pop ecx
pop ecx
je 0x5822aa
add ebx, eax
add ebp, eax
cmp byte [ebx], 0
jne 0x582288
jmp 0x5822ac
mov esi, eax
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005276d9
add esp, 0xc
add edi, ebp
test esi, esi
je 0x58246b
cmp byte [edi], 0x3f
jne 0x5822eb
cmp esi, 1
jle 0x5822e5
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 1]
push eax
call fcn.005695bb
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
jmp 0x582303
mov eax, dword [esp + 0x14]
jmp 0x5822ff
mov eax, dword [esp + 0x68]
push esi
push edi
push dword [eax + 0x80]
call fcn.0057b3fa
add esp, 0xc
mov dword [esp + 0x10], eax
add edi, esi
lea ecx, [eax + 1]
mov esi, dword [esp + 0x14]
cmp ecx, esi
cmovg esi, ecx
imul ecx, eax, 0x28
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], esi
mov esi, dword [eax + 0x64]
add esi, 0xffffffd8
add esi, ecx
movzx eax, word [esi + 0x10]
test al, 1
je 0x582338
push 4
push str.NULL
jmp 0x582455
test al, 0x24
je 0x582348
push dword [esi + 4]
push dword [esi]
push str._lld
jmp 0x58235c
test al, 8
je 0x58236e
movsd xmm0, qword [esi]
push ecx
push ecx
movsd qword [esp], xmm0
push str.__.15g
lea eax, [esp + 0x30]
push eax
call fcn.0052648b
add esp, 0x10
jmp 0x582462
test al, 2
je 0x5823fc
mov ebp, dword [esp + 0x1c]
mov bl, byte [ebp + 0x54]
mov byte [esp + 0x20], bl
cmp bl, 1
je 0x5823d2
push 0x28
lea eax, [esp + 0x40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push dword [esp + 0x30]
mov dword [esp + 0x64], ebp
mov eax, dword [esi + 0xc]
cdq
push edx
push eax
push dword [esi + 8]
lea eax, [esp + 0x5c]
push eax
call fcn.00583961
lea eax, [esp + 0x60]
push 1
push eax
call fcn.0057ba87
add esp, 0x2c
cmp eax, 7
jne 0x5823ce
and dword [esp + 0x2c], 0
mov byte [esp + 0x38], al
lea esi, [esp + 0x3c]
push dword [esi + 8]
lea eax, [esp + 0x28]
push dword [esi + 0xc]
push str._.q
push eax
call fcn.0052648b
add esp, 0x10
cmp bl, 1
je 0x582462
lea eax, [esp + 0x3c]
push eax
call fcn.00583802
pop ecx
jmp 0x582462
test eax, 0x400
lea eax, [esp + 0x24]
je 0x582416
push dword [esi]
push str.zeroblob__d_
push eax
call fcn.0052648b
jmp 0x58245f
push 2
push 0x65b10c
push eax
call fcn.005276d9
mov ebp, dword [esi + 0xc]
add esp, 0xc
xor ebx, ebx
test ebp, ebp
jle 0x58244e
mov eax, dword [esi + 8]
movzx eax, byte [eax + ebx]
push eax
lea eax, [esp + 0x28]
push str._02x
push eax
call fcn.0052648b
add esp, 0xc
inc ebx
cmp ebx, ebp
jl 0x58242f
push 1
push 0x65b118
lea eax, [esp + 0x2c]
push eax
call fcn.005276d9
add esp, 0xc
cmp byte [edi], 0
jne 0x582282
cmp byte [esp + 0x38], 0
je 0x58247d
lea eax, [esp + 0x24]
push eax
call fcn.00527780
pop ecx
lea eax, [esp + 0x24]
push eax
call fcn.0057815d
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret