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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0xf8], eax
test edx, edx
jne 0x1005afd7
mov ecx, dword [esp + 0xf8]
xor ecx, ebp
call fcn.1014dc80
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
movzx eax, byte [esi + 8]
cmp eax, dword [ebp + 8]
je 0x1005b000
cmp dword [ebp + 8], 0x80
jne 0x1005b048
cmp al, 0x7e
jne 0x1005b048
cmp byte [esi + 0xa], 0
je 0x1005b048
movzx eax, byte [esi + 9]
cmp eax, ecx
jne 0x1005b048
mov dword [esp + 4], edi
test edx, edx
je 0x1005b01e
mov eax, dword [esi + 0x10]
mov dword [esp], eax
test eax, eax
jne 0x1005b0da
cmp byte [esi + 0xa], 0
jne 0x1005b109
mov edi, dword [esp + 4]
mov ecx, edi
mov edx, esi
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1005b590
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [esi + 0x20]
test esi, esi
je 0x1005afc1
jmp 0x1005afe4
test eax, eax
jle 0x1005b0b9
mov eax, dword [esp + 8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4 + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp]
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov edx, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + ecx*8]
xor edi, edi
movzx eax, byte [ecx + edi]
mov ebx, dword [esp + 0xc]
movzx ebx, byte [ebx + edi]
cmp al, bl
jne 0x1005b097
test al, al
mov ebx, edx
je 0x1005b01e
inc edi
jmp 0x1005b07e
mov al, byte [eax + 0x1019c728]
cmp al, byte [ebx + 0x1019c728]
je 0x1005b094
mov ebx, edx
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
jne 0x1005b073
mov ecx, dword [esp + 8]
inc ecx
mov eax, ecx
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x18]
mov edi, dword [esp + 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
jne 0x1005b055
jmp 0x1005b048
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
test eax, eax
mov edi, dword [esp + 4]
mov ecx, dword [ebp + 0x10]
jle 0x1005b048
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
jmp 0x1005b055
mov edi, dword [esp + 4]
cmp dword [edi + 0x74], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
jne 0x1005b048
mov ebx, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x80]
xorps xmm0, xmm0
lea ecx, [esp + 0xa0]
movups xmmword [ecx + 0x3c], xmm0
movaps xmmword [ecx + 0x30], xmm0
movaps xmmword [ecx + 0x20], xmm0
movaps xmmword [ecx + 0x10], xmm0
movaps xmmword [ecx], xmm0
lea edi, [esp + 0x50]
movaps xmmword [edi], xmm0
movaps xmmword [edi + 0x10], xmm0
movaps xmmword [edi + 0x20], xmm0
movaps xmmword [edi + 0x30], xmm0
movaps xmmword [edi + 0x40], xmm0
mov dword [esp + 0x1c], eax
mov edx, dword [eax + 4]
xor eax, eax
mov ecx, ebx
push eax
call fcn.100018f0
add esp, 4
lea edx, [esp + 0xa0]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], edi
mov dword [edi], 1
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 4]
xor eax, eax
push eax
call fcn.10035a40
add esp, 4
mov dword [esp + 0x28], ebx
cmp byte [ebx + 0x53], 0
je 0x1005b49b
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x1005b1be
mov ecx, dword [esp + 0x28]
call fcn.100084e0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp dword [eax], 0
jle 0x1005b48f
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + ecx*4 + 8]
test edx, edx
je 0x1005b36d
mov al, byte [edx]
cmp al, 0xb3
je 0x1005b22f
mov ebx, ecx
cmp al, 0x8c
jne 0x1005b342
mov eax, dword [edx + 0x10]
cmp byte [eax], 0xb3
jne 0x1005b342
push str.RETURNING_may_not_use__TABLE.__wildcards
push dword [esp + 8]
call fcn.100394d0
add esp, 8
mov eax, dword [ebp + 0x14]
cmp word [eax + 0x2a], 0
jle 0x1005b36d
mov dword [esp + 0xc], 0
xor edi, edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
test byte [eax + ecx + 0x10], 2
jne 0x1005b2ad
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + ecx]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1005b2c7
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
and eax, 0x3fffffff
lea ecx, [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, ecx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov edx, 0x3b
push 0
push eax
call fcn.10007880
add esp, 8
mov ecx, dword [esp + 4]
mov edx, dword [esp]
push eax
call fcn.1014e350
add esp, 4
mov dword [esp], eax
cmp byte [ebx + 0x53], 0
je 0x1005b2cb
mov ecx, edi
inc ecx
mov eax, dword [ebp + 0x14]
movsx eax, word [eax + 0x2a]
add dword [esp + 0xc], 0x14
mov edi, ecx
cmp ecx, eax
jl 0x1005b247
jmp 0x1005b36d
xor eax, eax
jmp 0x1005b275
mov eax, dword [esp]
mov eax, dword [eax]
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov ebx, dword [eax + ecx]
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1005b326
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov edx, eax
push 0
call fcn.1014e1f0
add esp, 4
test eax, eax
je 0x1005b326
mov ecx, eax
push dword [esp + 0x2c]
push ebx
mov ebx, eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*4]
mov ecx, dword [esp]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4 + 0xc], edx
and byte [ecx + eax*4 + 0x14], 0xfc
jmp 0x1005b2ad
xor eax, eax
mov edi, dword [esp + 8]
mov ecx, edi
push eax
push eax
call fcn.10001c40
add esp, 8
mov ecx, dword [esp + 4]
mov edx, dword [esp]
push eax
call fcn.1014e350
add esp, 4
mov dword [esp], eax
cmp byte [edi + 0x53], 0
je 0x1005b386
mov edx, dword [esp + 0x10]
inc edx
mov eax, dword [esp + 0x18]
mov ecx, edx
mov dword [esp + 0x10], edx
cmp edx, dword [eax]
jl 0x1005b1eb
jmp 0x1005b402
mov eax, dword [esp + 0x18]
mov edi, dword [eax + ebx*4 + 0xc]
test edi, edi
je 0x1005b36d
mov eax, dword [esp]
mov eax, dword [eax]
dec eax
mov dword [esp + 0x14], eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x20], eax
mov edx, eax
push 0
call fcn.1014e1f0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x1005b3d3
push dword [esp + 0x20]
push edi
push dword [esp + 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*4]
mov edi, dword [esp]
mov ecx, dword [esp + 0xc]
mov dword [edi + eax*4 + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + ebx*4 + 0x14]
and ecx, 3
mov edx, dword [edi + eax*4 + 0x14]
and edx, 0xfffffffc
or edx, ecx
mov dword [edi + eax*4 + 0x14], edx
jmp 0x1005b36d
cmp dword [esp], 0
je 0x1005b48f
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x60], 0
jne 0x1005b43f
mov eax, dword [esp]
mov eax, dword [eax]
mov edi, dword [esp + 0x1c]
mov dword [edi + 0x60], eax
mov edx, dword [esp + 4]
mov eax, dword [edx + 0x28]
lea ecx, [eax + 1]
mov dword [edx + 0x28], ecx
mov dword [edi + 0x5c], eax
lea ecx, [esp + 0x30]
mov edx, dword [esp + 4]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx + 8], eax
mov dword [ecx + 0x18], 0x400
mov al, byte [esi + 8]
mov byte [edx + 0x90], al
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x78], eax
mov edx, dword [esp]
call fcn.100050e0
test eax, eax
je 0x1005b4be
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
call fcn.100084e0
mov eax, dword [esp + 4]
mov byte [eax + 0x90], 0
mov dword [eax + 0x78], 0
mov edi, dword [esp + 4]
mov ebx, dword [ebp + 0x20]
jmp 0x1005b042
mov eax, dword [esp + 4]
cmp dword [eax + 0x24], 0
jne 0x1005b1aa
lea edx, [esp + 0xa0]
mov ecx, dword [esp + 4]
call fcn.100361f0
jmp 0x1005b1aa
mov eax, dword [esp]
mov edi, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x2c]
lea eax, [edi + edx]
add eax, 2
mov dword [ecx + 0x2c], eax
inc edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [eax + 0x64], edx
mov dword [esp + 8], edi
test edi, edi
jle 0x1005b514
mov eax, dword [esp]
lea edi, [eax + 8]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [edi]
mov ecx, dword [esp + 4]
push ebx
call fcn.10167820
add esp, 4
inc ebx
add edi, 0x14
dec dword [esp + 0xc]
jne 0x1005b4f9
jmp 0x1005b51c
mov dword [esp + 8], 0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
lea eax, [ebx + edi]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
mov edx, 0x5d
push eax
push ebx
push edi
call fcn.10036aa0
add esp, 0xc
lea eax, [ebx + edi]
inc eax
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x24]
mov ecx, ebx
mov edx, 0x7b
push 0
push eax
mov edi, dword [esp + 0x24]
push dword [edi + 0x5c]
call fcn.10036aa0
add esp, 0xc
mov ecx, ebx
mov edx, 0x7c
push dword [esp + 8]
push dword [esp + 0x10]
push dword [edi + 0x5c]
call fcn.10036aa0
add esp, 0xc
jmp 0x1005b471