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

Disassembly:
sub esp, 0x70
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
mov dword [esp + 0x10], ecx
push dword [ebx]
call fcn.1002e9a0
mov esi, eax
push esi
call fcn.1002ed80
push esi
mov edi, eax
call fcn.1002eae0
mov ecx, dword [ebx + 0x38]
add esp, 0xc
mov ebx, 1
mov ebp, eax
cmp ecx, ebx
cmova ebx, ecx
mov ecx, dword [esp + 0x10]
imul ebx, edi
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
sub edi, edx
mov dword [esp + 0x18], edx
sar edi, 2
mov dword [esp + 0x1c], edi
cmp ebx, edi
ja 0x1005d799
lea eax, [ebp - 2]
cmp eax, 2
ja 0x1005d565
xor esi, esi
sub edi, ebx
nop dword [eax + eax]
push ebp
push ebx
push 0
push esi
call fcn.1005a3c0
mov ecx, dword [esp + 0x10]
test al, al
jne 0x1005d54a
inc esi
cmp esi, edi
jbe 0x1005d4c0
cmp ebp, 2
jne 0x1005d799
lea eax, [edi + 1]
cmp eax, 1
jb 0x1005d799
mov ebp, dword [esp + 0x18]
lea edi, [eax - 1]
add ebp, 0xfffffffe
xor edx, edx
lea ebp, [ebp + eax*4]
test ebx, ebx
je 0x1005d51a
mov esi, ebp
xor ecx, ecx
mov eax, esi
cmp byte [eax], 0
jne 0x1005d539
inc ecx
inc eax
cmp ecx, 2
jb 0x1005d506
inc edx
add esi, 4
cmp edx, ebx
jb 0x1005d502
push dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
push 2
push edi
call fcn.1005a0d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x70
ret 4
cmp edi, 1
jb 0x1005d799
dec edi
sub ebp, 4
xor edx, edx
jmp 0x1005d500
push dword [esp + 0x84]
push 0
push esi
call fcn.1005a0d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x70
ret 4
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x30], xmm0
test edi, edi
je 0x1005d5ba
mov esi, edi
nop dword [eax]
xor ecx, ecx
cmp byte [edx], 0
je 0x1005d591
mov dword [esp + ecx + 0x40], 0
jmp 0x1005d5a8
mov eax, dword [esp + ecx + 0x40]
inc dword [esp + ecx + 0x30]
inc eax
mov dword [esp + ecx + 0x40], eax
cmp eax, dword [esp + ecx + 0x20]
jbe 0x1005d5a8
mov dword [esp + ecx + 0x20], eax
add ecx, 4
inc edx
cmp ecx, 0x10
jb 0x1005d582
sub esi, 1
jne 0x1005d580
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x24], ebx
jb 0x1005d5df
cmp dword [esp + 0x20], ebx
jb 0x1005d5d6
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x30]
jae 0x1005d5df
mov ecx, 1
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x28], ebx
jb 0x1005d5fe
cmp dword [esp + ecx*4 + 0x20], ebx
jb 0x1005d5f5
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + ecx*4 + 0x30]
jae 0x1005d5fe
mov ecx, 2
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x2c], ebx
jb 0x1005d61d
cmp dword [esp + ecx*4 + 0x20], ebx
jb 0x1005d614
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + ecx*4 + 0x30]
jae 0x1005d61d
mov ecx, 3
mov dword [esp + 0x14], ecx
cmp dword [esp + ecx*4 + 0x20], ebx
jb 0x1005d799
test edi, edi
je 0x1005d559
lea edi, [edx + ecx]
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x1005d66c
mov ebp, dword [esp + 0x1c]
mov esi, edi
xor ecx, ecx
mov eax, esi
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x1005d710
inc ecx
inc eax
cmp ecx, 1
jb 0x1005d650
inc edx
add esi, 4
cmp edx, ebx
jb 0x1005d644
mov eax, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
je 0x1005d559
mov edx, dword [esp + 0x10]
lea edi, [eax*4]
lea ebp, [edx + 0xc]
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esp + 0x84]
add eax, esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0
cmp ecx, dword [edx + 0x14]
je 0x1005d72b
mov edx, dword [esp + 0x84]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x14], eax
lea eax, [esp + 0x68]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0
add ecx, 0x18
push eax
call fcn.10029be0
mov edx, dword [esp + 0x10]
add dword [edx + 0x10], 0x30
jmp 0x1005d73c
mov eax, dword [esp + 0x18]
add edi, 4
inc eax
mov dword [esp + 0x18], eax
cmp eax, ebp
jae 0x1005d559
xor edx, edx
jmp 0x1005d642
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, ebp
call fcn.10043ca0
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
add eax, edi
mov byte [eax + ecx], 1
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x10
jb 0x1005d77e
mov edx, dword [esp + 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d770
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d793
push ecx
push edx
call fcn.10174919
mov edx, dword [esp + 0x18]
add esp, 8
inc esi
add edi, 4
cmp esi, ebx
jae 0x1005d559
mov eax, dword [esp + 0x18]
jmp 0x1005d690
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x70
ret 4