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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], esi
test eax, eax
mov ebx, 6
cmovns ebx, eax
mov eax, esi
mov dword [esp + 0x3c], ecx
or eax, ecx
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
je 0x2986015
mov ecx, ebx
and ecx, 0x400
jmp 0x2986028
mov eax, ebx
and eax, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x298602e
test eax, eax
jne 0x298602e
mov eax, ecx
mov cx, 8
movzx edi, cx
lea ecx, [edi + 0x800]
test ebx, 0x10000
cmove edi, ecx
mov dword [esp + 0x7c], edi
mov ecx, ebx
and ecx, 0xf
mov dword [esp + 0x24], ecx
sete byte [esp + 0x18]
test eax, eax
setne cl
mov edx, dword [edx + 0x48]
mov dword [esp + 4], edx
test edx, edx
je 0x2986102
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x2986102
cmp dword [ebp + 0x14], 0
setne dl
cmp dword [ebp + 0x10], 0
sete ch
cmp dword [ebp + 0xc], 0
je 0x2986102
and ch, dl
jne 0x2986102
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
jne 0x2986102
cmp dword [esp + 0x24], 0xb
jae 0x2986102
mov edx, dword [esp + 4]
mov edi, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
test edi, edi
je 0x29860c7
cmp edx, 0xffffffff
jne 0x29860e8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x298610c
cmp dword [esp + 0x3c], 0
jne 0x29860d8
xor edi, edi
cmp edx, 0xffff
jne 0x29860e8
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov edi, 1
mov dword [esp + 0xc], edi
not ebx
mov edi, ebx
or edi, 0x400
mov edx, esi
or edx, dword [esp + 0x3c]
je 0x2986118
cmp edi, ebx
jne 0x2986118
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x4c], edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x2f
mov edx, dword [ebp + 8]
jne 0x2986130
mov dword [edx + 0x1c], 0x19
jmp 0x298610c
movzx edx, byte [esp + 0x18]
or dl, cl
test eax, eax
mov byte [esp + 0x18], dl
je 0x2986148
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x74], eax
jmp 0x2986188
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.02983f20
add esp, 0xc
mov dword [esp + 0x74], eax
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
cmp esi, 4
setb al
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], 0
cmovb ecx, edx
mov dword [esp + 0x24], ecx
or byte [esp + 0x18], al
push edi
call fcn.02989660
add esp, 4
cmp eax, 0x10000
jb 0x29861a7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x298610c
mov dword [esp + 0x20], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], 0
mov edi, 0xfffffffe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
or ecx, eax
mov ecx, 0
je 0x29861e0
lea ecx, [edi + eax]
inc ecx
mov edx, dword [edx]
and edx, ecx
sub eax, edx
and eax, ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
xor ecx, ecx
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
add edi, eax
setb cl
mov dword [esp + 0x6c], edx
add edi, edx
adc ecx, 0
mov edx, edi
mov dword [esp + 0x70], edi
add edx, 0x4a
adc ecx, 0
mov edi, 0xfffffffe
cmp edi, edx
sbb dword [esp + 0x1c], ecx
jae 0x298622b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x298610c
cmp dword [esp + 0xc], 0
mov edi, dword [esp + 0x10]
jne 0x298629c
shr eax, 0x1f
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x78]
add ecx, dword [ebp + 0x38]
mov edx, 0
adc edx, 0xffffffff
add ecx, dword [ebp + 0x40]
adc edx, 0
mov eax, dword [esp + 0x20]
add eax, eax
add ecx, eax
adc edx, dword [esp + 0x1c]
add ecx, edi
adc edx, 0
add ecx, dword [esp + 0x6c]
adc edx, 0
mov eax, dword [ebp + 8]
add ecx, dword [eax]
adc edx, dword [eax + 4]
mov eax, dword [esp + 0x20]
add ecx, 0x72
adc edx, 0
cmp edx, 0xffffffff
je 0x298629c
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], 1
mov dword [esp + 0xc], 1
xor ecx, ecx
test eax, eax
je 0x29862c7
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx - 1], 0x2f
mov edi, dword [ebp + 0x14]
jne 0x29862ca
test edi, edi
jne 0x2986102
mov ecx, 0x10
or esi, dword [esp + 0x3c]
je 0x29862ca
jmp 0x2986102
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, 0x1c
cmove eax, ecx
mov ecx, dword [esp + 0x70]
add eax, ecx
add eax, 0x2e
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
cmp edx, eax
jae 0x298632c
test edx, edx
mov ecx, 1
cmovne ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x29862fa
push esi
mov eax, dword [esp + 8]
push dword [eax + 0xc]
push dword [eax]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x298646c
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov edi, dword [ebp + 0x14]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
inc eax
cmp ecx, eax
jae 0x2986375
test ecx, ecx
mov edx, 1
cmovne edx, ecx
mov esi, edx
add edx, edx
cmp esi, eax
jb 0x2986341
push esi
mov eax, dword [esp + 8]
push dword [eax + 0x1c]
push dword [eax + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x298646c
mov ecx, dword [esp + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], esi
mov edi, dword [ebp + 0x14]
test edi, edi
sete cl
xor eax, eax
or cl, byte [esp + 0x18]
jne 0x298639d
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x2986585
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [esp]
mov esi, dword [esp + 0x10]
push esi
mov edi, dword [esp + 0xc]
push edi
call fcn.02986b70
add esp, 8
test eax, eax
je 0x2986478
cmp dword [esp + 0x4c], ebx
sete dh
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, esi
adc ecx, 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp]
add ebx, esi
adc edi, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmmword [esp + 0x8e], xmm0
and dh, byte [esp + 0x18]
mov dl, dh
xor dl, 1
movzx eax, dl
shl eax, 3
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x298648d
mov byte [esp + 4], dh
mov dword [esp + 8], edi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, 0xfffffffe
mov dword [esp + 0x10], edx
cmp esi, edx
mov edi, 0
sbb edi, eax
mov esi, dword [esp + 0x1c]
mov dword [esp], ebx
jb 0x2986594
xor edi, edi
mov edx, esi
mov esi, 0xfffffffe
cmp esi, edx
mov esi, edx
sbb edi, ecx
jb 0x2986594
mov dword [esp + 0x10], 0
xor edi, edi
jmp 0x29865e5
mov dword [edi + 0x1c], 0x10
jmp 0x298610c
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x298610c
cmp dword [esp + 0x44], 0
jne 0x2986991
test edi, edi
jne 0x2986991
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0x80], 0x4034b50
xor ebx, ebx
test dh, dh
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x84], dl
mov edx, dword [esp + 0x7c]
movzx eax, dx
mov byte [esp + 0x86], dl
mov byte [esp + 0x87], ah
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x88], al
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x9a], al
mov edi, eax
mov byte [esp + 0x9b], ah
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x9c], al
mov byte [esp + 0x9d], ah
lea edx, [esp + 0x80]
push 0x1e
push edx
push ecx
push dword [esp + 0x28]
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x29866fa
mov eax, dword [esp]
add eax, 0x1e
mov ecx, esi
mov esi, dword [esp + 8]
adc esi, 0
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0xc], eax
push eax
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x29866ea
mov ebx, dword [esp]
add ebx, edi
adc esi, 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
jmp 0x2986710
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x298610c
xor edi, edi
mov ebx, 0xfffffffe
cmp ebx, esi
mov esi, eax
mov eax, 0
sbb eax, ecx
lea eax, [esp + 0x28]
cmovae eax, edi
cmp ebx, dword [esp + 0x10]
mov ecx, 0
sbb ecx, esi
lea esi, [esp + 0x40]
cmovae esi, edi
lea edx, [esp + 0x30]
cmovae edx, edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x10], ecx
push eax
push esi
call fcn.02986c10
add esp, 8
mov edi, eax
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], 0x4034b50
xor ebx, ebx
cmp byte [esp + 4], 0
mov edx, 0x14
cmovne edx, ebx
mov byte [esp + 0x84], dl
mov byte [esp + 0x85], 0
movzx edx, word [esp + 0x7c]
mov byte [esp + 0x86], dl
mov byte [esp + 0x87], dh
mov eax, dword [ebp + 0x38]
lea edx, [edi + eax]
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x88], al
xorps xmm0, xmm0
movups xmmword [esp + 0x89], xmm0
mov byte [esp + 0x99], 0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x9a], al
mov byte [esp + 0x9b], ah
mov byte [esp + 0x9c], dl
mov byte [esp + 0x9d], dh
lea edx, [esp + 0x80]
push 0x1e
push edx
push ecx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
mov eax, dword [esp + 8]
jne 0x29866fa
mov dword [esp + 4], edi
mov edi, dword [esp]
add edi, 0x1e
adc eax, 0
mov ecx, esi
mov esi, dword [esp + 0x20]
push esi
push dword [ebp + 0xc]
mov dword [esp + 0x10], eax
push eax
push edi
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x29866ea
add edi, esi
mov ecx, dword [esp + 8]
adc ecx, 0
cmp dword [esp + 0x10], 0
mov ebx, edi
je 0x2986706
lea eax, [esp + 0xb0]
mov edi, dword [esp + 4]
push edi
push eax
mov esi, ecx
push ecx
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x298673a
add ebx, edi
adc esi, 0
jmp 0x2986710
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x298610e
mov esi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x2986749
push eax
push dword [ebp + 0x34]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x298673a
add ebx, ecx
mov dword [esp], ebx
adc esi, 0
jmp 0x298674c
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x298610c
mov dword [esp], ebx
mov dword [esp + 8], esi
cmp byte [esp + 0x18], 0
je 0x2986796
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x2986955
mov eax, dword [ebp + 0x14]
add dword [esp], eax
adc dword [esp + 8], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x2986858
cmp dword [ebp + 0x14], 0
je 0x2986858
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov edx, dword [esp + 0x24]
cmp edx, 0xa
mov ecx, 0xa
cmovl ecx, edx
mov dword [esp + 0x60], 0
xor eax, eax
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x29bc988]
mov ecx, eax
or ecx, 0x80000
test edx, edx
cmovne ecx, eax
lea eax, [esp + 0x50]
push ecx
push eax
push 0x2986080
mov esi, dword [esp + 0x18]
push esi
call fcn.02985470
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xac]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.02983ff0
add esp, 0x18
cmp eax, 1
jne 0x2986971
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x24], ecx
or eax, ecx
je 0x2986a8b
mov dword [esp + 0x50], 0x8074b50
mov ecx, dword [esp + 0x74]
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x56], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x57], al
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x10], 0
je 0x298698d
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], dh
mov byte [esp + 0x5e], al
mov byte [esp + 0x5f], cl
mov ecx, edi
mov byte [esp + 0x60], cl
mov byte [esp + 0x61], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x63], al
mov dword [esp + 0xc], 0x38
mov dword [esp + 0x70], 0x30
mov ecx, 0x28
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], 0x17
mov eax, dword [esp + 0x24]
mov byte [esp + 0x17], al
mov dword [esp + 0x6c], 0x16
mov dword [esp + 0xa4], 0x15
mov dword [esp + 0xa0], 0x14
jmp 0x29869ed
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x298610c
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x298610c
test edx, edx
je 0x29869a0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x298610c
mov dword [esp + 0x58], ecx
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x70], 0x10
mov ecx, 8
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x6c], 0xe
mov eax, edi
mov byte [esp + 0x17], al
mov dword [esp + 0xa4], 0xd
mov dword [esp + 0xa0], 0xc
mov dword [esp + 0x18], 0x10
mov ebx, edi
mov edx, dword [esp + 0x24]
shrd ebx, edx, cl
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, ebx
mov esi, edi
mov ecx, dword [esp + 0x70]
shrd esi, edx, cl
mov dword [esp + 0xa8], esi
movzx ebx, byte [esp + 0x17]
mov esi, dword [esp + 0xa0]
mov byte [esp + esi + 0x50], bl
mov ebx, dword [esp + 0xa4]
mov byte [esp + ebx + 0x50], al
mov eax, edx
shr eax, cl
test cl, 0x20
cmove eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x6c]
mov byte [esp + ecx + 0x50], al
mov ecx, dword [esp + 0xc]
shrd edi, edx, cl
shr edx, cl
test cl, 0x20
cmove edx, edi
mov eax, dword [esp + 0x1c]
mov byte [esp + eax + 0x50], dl
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x18]
push esi
push eax
push dword [esp + 0x10]
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x298610c
mov eax, dword [esp + 0x18]
add dword [esp], eax
adc dword [esp + 8], 0
cmp dword [esp + 0x10], 0
je 0x2986add
xor ecx, ecx
mov edx, 0xfffffffe
cmp edx, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
lea eax, [esp + 0x28]
cmovae eax, ecx
cmp edx, dword [esp + 0x30]
mov edx, 0
sbb edx, dword [esp + 0x34]
lea esi, [esp + 0x40]
cmovae esi, ecx
lea edx, [esp + 0x30]
cmovae edx, ecx
lea ecx, [esp + 0xb0]
push eax
push esi
call fcn.02986c10
add esp, 8
mov dword [esp + 4], eax
movzx ebx, word [esp + 0x7c]
movzx esi, word [esp + 0x4c]
movzx eax, word [esp + 4]
movzx edi, word [esp + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push ebx
push esi
push dword [esp + 0x98]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xb0]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x54]
push edi
call fcn.02986ce0
add esp, 0x4c
test eax, eax
je 0x298610c
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x298610e