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

Disassembly:
mov eax, 0x1022276c
call fcn.10210210
mov eax, dword [esp + 0x1c]
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
sub esp, 0x10
mov ebp, ecx
mov edx, esp
sub esp, 0x10
mov ecx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x9c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xa4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x15c]
mov dword [ecx], eax
mov eax, dword [ebp + 0x160]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x164]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x168]
mov dword [ecx + 0xc], eax
call fcn.1003cdf7
add esp, 0x20
test al, al
je 0x10158ee0
mov esi, dword [esp + 0x70]
mov ecx, esi
push 0x102b8c20
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x134]
push eax
mov eax, dword [ebp + 0x15c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0x160]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x164]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x168]
mov dword [ecx + 0xc], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x74]
mov eax, dword [ebp]
mov ecx, ebp
mov esi, dword [ebp + 0x15c]
mov edi, dword [ebp + 0x164]
mov ebx, dword [ebp + 0x168]
call dword [eax + 0x13c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax + 4], ebx
mov dword [eax], esi
mov dword [eax + 0xc], ebx
mov ebx, dword [esp + 0x84]
mov ecx, ebx
mov dword [eax + 8], edi
mov eax, dword [ebx]
call dword [eax + 0x74]
cmp dword [esp + 0x74], 0
je 0x10158ee0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x138]
xor edi, edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
push dword [esp + 0x74]
lea eax, [esp + 0x44]
mov byte [esp + 0x68], 3
movdqa xmm0, xmmword [0x102711a0]
mov ecx, ebp
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x3c]
push eax
movdqu xmmword [esp + 0x68], xmm0
call fcn.10159020
mov eax, dword [ebp]
mov ecx, ebp
mov esi, dword [ebx]
push edi
push edi
call dword [eax + 0x140]
push eax
mov ecx, ebx
call dword [esi + 0x14]
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x140]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
sub esp, 0x10
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx], edi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x74]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x40]
sub esi, edi
lea ecx, [esp + 0x3c]
inc esi
push esi
call fcn.10158241
add esp, 0xc
mov byte [esp + 0x64], 4
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0x15c]
mov dword [esp + 0x48], eax
lea eax, [edi - 2]
mov dword [esp + 0x50], eax
lea edi, [esi + 4]
mov eax, dword [edi]
mov dword [esp + 0x18], edi
add eax, 2
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xc]
sub eax, 2
mov dword [esp + 0x5c], eax
mov dword [ecx], 0x102b8088
push dword [esp + 0x3c]
call fcn.10132f35
push dword [esp + 0x78]
lea edx, [esp + 0x54]
mov ecx, ebx
call fcn.1015839f
add esp, 0xc
xor eax, eax
mov dword [esp + 0x74], eax
cmp eax, dword [esi - 4]
jge 0x10158e8d
add dword [edi], 2
mov ecx, ebp
add dword [edi + 8], 0xfffffffe
mov eax, dword [ebp]
mov edi, dword [ebx]
push 0
call dword [eax + 0x130]
push eax
mov ecx, ebx
call dword [edi + 0x18]
mov edi, dword [esp + 0x18]
sub esp, 0x10
mov ecx, esp
lea eax, [edi - 4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x44]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov eax, dword [eax + ecx*4]
dec eax
mov dword [esp + 0x24], eax
cmp eax, 1
jle 0x10158df6
mov eax, dword [edi - 4]
sub esp, 0x10
mov edx, dword [edi]
mov esi, dword [edi + 8]
inc edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
lea ecx, [eax + 1]
add edx, eax
mov dword [esp + 0x80], esi
dec dword [esp + 0x80]
mov eax, esp
push str.ww
mov dword [esp + 0x38], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, ebp
mov dword [eax + 8], edx
mov eax, dword [ebp]
call dword [eax + 0x140]
push eax
mov ecx, ebx
call fcn.10107f3e
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp eax, dword [edi + 4]
jge 0x10158df6
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x134]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x74]
mov eax, dword [esp + 0x1c]
mov ecx, ebp
mov edi, dword [esp + 0x74]
mov edi, dword [eax + edi*4]
mov eax, dword [ebp]
call dword [eax + 0x138]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
sub eax, dword [ecx]
lea ecx, [esp + 0x70]
push ecx
inc eax
lea ecx, [esp + 0x34]
push edi
push eax
mov eax, dword [esp + 0x80]
mov edx, dword [edx + eax*4]
call fcn.10158241
add esp, 0xc
push 0
push ecx
mov ecx, esp
mov byte [esp + 0x6c], 5
mov dword [ecx], 0x102b8088
push dword [esp + 0x38]
call fcn.10132f35
push dword [esp + 0x78]
mov edx, dword [esp + 0x38]
mov ecx, ebx
call fcn.1015839f
add esp, 0xc
mov byte [esp + 0x64], 4
lea ecx, [esp + 0x30]
call fcn.10002371
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x18]
inc eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x10158cee
lea ecx, [esp + 0x34]
call fcn.10002371
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10158ead
add eax, 0xfffffff8
push eax
call fcn.101dad34
and dword [esp + 0x18], 0
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10158ec4
add eax, 0xfffffff8
push eax
call fcn.101dad34
and dword [esp + 0x20], 0
pop ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10158ed6
add eax, 0xfffffff8
push eax
call fcn.101dad34
pop ecx
add esi, 0xfffffff8
push esi
call fcn.101dad34
pop ecx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18