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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, ecx
mov ecx, dword [esp + 0xa0]
mov eax, dword [esi + 0x48]
mov ebp, dword [eax + 4]
mov dword [esp + 0x4c], ebp
test ecx, ecx
je 0x2986d10
cmp dword [eax + 0x34], 0
jne 0x2986d10
mov dword [esi + 0x1c], 3
jmp 0x29871da
mov dword [esp + 0x48], edx
mov dword [esp + 4], eax
movzx eax, word [esp + 0x6c]
movzx ebx, word [esp + 0x64]
movzx eax, ax
movzx edi, word [esp + 0x74]
mov dword [esp + 0x40], eax
mov edx, ebx
mov dword [esp + 0x44], ebx
add eax, ebx
add eax, edi
xor edx, edx
add eax, dword [esp + 0xac]
setb dl
add eax, ebp
adc edx, 0
add eax, 0x2e
adc edx, 0
cmp eax, 0xffffffff
sbb edx, 0
jb 0x2986d63
mov dword [esi + 0x1c], 0xf
jmp 0x29871da
mov dword [esp + 0x38], edi
movzx edx, word [esp + 0x8c]
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0
mov dword [esp + 8], 0x2014b50
mov dword [esp], ecx
xor ecx, ecx
test dx, dx
mov eax, 0x14
cmove eax, ecx
mov byte [esp + 0xe], al
movzx eax, word [esp + 0x90]
mov byte [esp + 0x10], al
mov byte [esp + 0x11], ah
movzx eax, word [esp + 0x98]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], dh
movzx edx, word [esp + 0x94]
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], dh
mov edx, dword [esp + 0x88]
mov byte [esp + 0x16], al
mov byte [esp + 0x17], ah
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x84]
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov edi, dword [esp + 0x80]
neg eax
mov edx, 0
sbb edx, edx
or edx, edi
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x1e], al
mov eax, dword [esp + 0x7c]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x78]
neg eax
mov eax, 0
sbb eax, eax
or eax, edx
mov byte [esp + 0x20], al
mov byte [esp + 0x21], ah
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x22], dl
mov edx, dword [esp + 0xa4]
shr eax, 0x18
mov byte [esp + 0x23], al
movzx eax, word [esp + 0x6c]
mov edi, dword [esp + 0xac]
add eax, edi
movzx edi, word [esp + 0x64]
mov ebx, edi
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], ah
movzx eax, word [esp + 0x74]
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x30], al
shr edx, 0x18
mov byte [esp + 0x31], dl
neg dword [esp]
sbb ecx, ecx
mov eax, dword [esp + 0x9c]
or ecx, eax
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x34], al
shr ecx, 0x18
mov byte [esp + 0x35], cl
mov ecx, esi
lea esi, [ebp + 0x2e]
mov edi, dword [esp + 4]
mov edx, dword [edi + 8]
cmp edx, esi
mov dword [esp], ecx
mov dword [esp + 0x3c], ebp
jae 0x2986f20
test edx, edx
mov eax, 1
cmovne eax, edx
nop word [eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x2986ef0
push edi
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
push dword [ecx + 0x34]
call dword [ecx + 0x30]
add esp, 0x10
test eax, eax
je 0x29871ac
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edi, ebx
mov ebp, dword [esp + 0x3c]
jmp 0x2986f22
mov eax, dword [edi]
mov dword [edi + 4], esi
mov ecx, dword [edi + 0xc]
imul edx, ecx, 0x2e
imul ecx, ebp
add ecx, eax
lea eax, [esp + 8]
push edx
push eax
push ecx
call fcn.02989580
mov edx, dword [esp + 0x10]
add esp, 0xc
mov esi, dword [edx + 4]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x44]
lea ebp, [esi + eax]
cmp edi, ebp
movzx ebx, word [esp + 0x74]
jae 0x2986fa1
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x2986f70
push edi
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
mov ebx, edx
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x29871ac
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edx, ebx
movzx ebx, word [esp + 0x74]
movzx ecx, word [esp + 0x6c]
mov dword [edx + 4], ebp
cmp word [esp + 0x64], 0
je 0x2986fdd
mov eax, dword [edx + 0xc]
imul esi, eax
add esi, dword [edx]
mov ecx, dword [esp + 0x44]
imul ecx, eax
push ecx
push dword [esp + 0x4c]
push esi
call fcn.02989580
movzx ecx, word [esp + 0x78]
mov edx, dword [esp + 0x10]
add esp, 0xc
mov ebp, dword [edx + 4]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x40]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x298703f
test edi, edi
mov eax, 1
cmovne eax, edi
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x2987000
push edi
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
mov ebx, edx
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x29871ac
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edx, ebx
movzx ebx, word [esp + 0x74]
mov eax, dword [esp + 0xac]
movzx ecx, word [esp + 0x6c]
jmp 0x2987046
mov eax, dword [esp + 0xac]
mov dword [edx + 4], esi
test cx, cx
je 0x298707c
mov eax, dword [edx + 0xc]
imul ebp, eax
add ebp, dword [edx]
mov ecx, dword [esp + 0x40]
imul ecx, eax
push ecx
push dword [esp + 0x6c]
push ebp
call fcn.02989580
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x10]
add esp, 0xc
mov esi, dword [edx + 4]
mov edi, dword [edx + 8]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x29870c8
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x2987090
push edi
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
mov ebx, edx
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x29871ac
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edx, ebx
movzx ebx, word [esp + 0x74]
mov eax, dword [esp + 0xac]
mov dword [edx + 4], ebp
test eax, eax
je 0x29870f7
mov ecx, eax
mov eax, dword [edx + 0xc]
imul esi, eax
add esi, dword [edx]
imul ecx, eax
push ecx
push dword [esp + 0xac]
push esi
call fcn.02989580
mov edx, dword [esp + 0x10]
add esp, 0xc
mov ebp, dword [edx + 4]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x38]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x298713d
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x2987110
push edi
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
mov ebx, edx
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x29871ac
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edx, ebx
movzx ebx, word [esp + 0x74]
mov dword [edx + 4], esi
test bx, bx
je 0x2987166
mov eax, dword [edx + 0xc]
imul ebp, eax
add ebp, dword [edx]
mov ecx, dword [esp + 0x38]
imul ecx, eax
push ecx
push dword [esp + 0x74]
push ebp
call fcn.02989580
mov edx, dword [esp + 0x10]
add esp, 0xc
mov esi, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
lea edi, [esi + 1]
cmp ecx, edi
jae 0x29871e4
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop dword [eax]
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x2987180
push ebp
push dword [edx + 0x1c]
push dword [edx + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
mov ebx, edx
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x29871ac
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], ebp
mov edx, ebx
jmp 0x29871e7
mov edi, dword [esp + 0x3c]
cmp dword [ebx + 8], edi
mov esi, dword [esp]
jae 0x29871d0
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [esi + 0x34]
call dword [esi + 0x30]
add esp, 0x10
test eax, eax
je 0x29871d3
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [esi + 0x1c], 0x10
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edx + 0x10]
mov dword [edx + 0x14], edi
mov ecx, dword [edx + 0x1c]
imul esi, ecx
add esi, eax
lea eax, [esp + 0x4c]
push ecx
push eax
push esi
call fcn.02989580
add esp, 0xc
mov eax, 1
jmp 0x29871dc