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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
or esi, 0xffffffff
mov ebx, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.005bf6dc
cmp dword [ebx + 0x1a8], 0
jne 0x5c3cc0
lea ebp, [ebx + 0x10]
mov ecx, ebp
call fcn.005b43e4
test al, al
je 0x5c3cc0
inc dword [ebx + 0x1a8]
mov ecx, ebp
call fcn.005b43ec
test al, al
jne 0x5c3cba
mov ecx, ebp
call fcn.005b43f0
mov ecx, ebp
mov byte [esp + 0x13], al
mov byte [esp + 0x30], 0
call fcn.005b4ceb
or dword [esp + 0x1c], esi
xor ecx, ecx
or dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x5c3c9e
dec eax
xor esi, esi
mov dword [esp + 0x3c], eax
inc esi
mov ecx, ebp
call fcn.005b44a2
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.005b3eff
mov dword [esp + 0x28], eax
cmp dword [eax], esi
jne 0x5c3ad1
push 0
push eax
push 0x420
jmp 0x5c3b4a
cmp dword [eax], 3
jne 0x5c3b42
movaps xmm0, xmmword [0x6b93b0]
lea esi, [esp + 0x40]
mov eax, dword [eax + 4]
sub esp, 0x28
and dword [esp + 0x88], 0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x8c], eax
xorps xmm0, xmm0
push 0xa
pop ecx
mov edi, esp
movups xmmword [esp + 0x78], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.005c2a7f
mov edi, dword [esp + 0x28]
mov cl, byte [edi + 0x10]
test cl, cl
jne 0x5c3b26
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x18], 0xffffffff
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x5c3b6a
push 0
push eax
push 0x820
lea ecx, [esp + 0x4c]
call fcn.005bdc7e
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.005c2a7f
mov edi, dword [esp + 0x28]
mov ecx, ebp
call fcn.005b45d5
cmp dword [edi], 3
je 0x5c3b89
push dword [edi + 4]
mov ecx, ebx
call fcn.005c252d
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
jmp 0x5c3b8d
mov eax, dword [esp + 0x24]
xor edx, edx
inc edx
push 0x20
pop esi
cmp dword [edi], edx
jne 0x5c3bfa
mov edx, dword [edi + 0xc]
add eax, edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0x21
pop esi
test eax, eax
jle 0x5c3be6
cmp ecx, dword [esp + 0x18]
je 0x5c3bcf
mov eax, dword [esp + 0x18]
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x20]
cmp ecx, eax
je 0x5c3bcb
mov eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x5c3bec
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jmp 0x5c3bf4
mov eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jmp 0x5c3c16
cmp dword [edi], 0
jne 0x5c3c16
or dword [esp + 0x1c], 0xffffffff
and dword [esp + 0x14], 0
or dword [esp + 0x18], 0xffffffff
and dword [esp + 0x20], 0
push 0x22
pop esi
xor eax, eax
inc eax
cmp dword [esp + 0x34], eax
jle 0x5c3c25
or esi, 0x80
mov ecx, ebp
call fcn.005b44a2
mov ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x38]
push 1
pop edx
movzx ecx, cl
cmovne ecx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], edx
jne 0x5c3c5b
or esi, 0x100
test cl, cl
je 0x5c3c5b
or esi, 0x1000
push 0
push dword [edi + 8]
lea ecx, [esp + 0x48]
push eax
push dword [edi + 0xc]
push dword [edi + 4]
push esi
call fcn.005bdcb7
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.005c2a7f
mov edi, dword [esp + 0x2c]
inc edi
push 1
mov dword [esp + 0x30], edi
pop esi
cmp edi, dword [esp + 0x34]
jl 0x5c3aad
mov esi, dword [esp + 0x24]
mov ecx, ebp
call fcn.005b43f0
mov byte [esp + 0x3c], al
cmp byte [esp + 0x13], al
je 0x5c3cba
push dword [esp + 0x3c]
mov ecx, ebx
call fcn.005c2b26
dec dword [ebx + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret