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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e8
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
test ecx, ecx
js 0x3695eaa
cmp ecx, 0x44
jae 0x3695eaa
mov eax, ecx
shl eax, 4
sub eax, ecx
xor ecx, ecx
cmp dword [eax*4 + 0x1010a070], ecx
lea eax, [eax*4 + 0x1010a070]
cmovne ecx, eax
jmp 0x3695eac
xor ecx, ecx
mov esi, dword [0x100f5260]
lea eax, [esp + 0x54]
push 2
push 0
push 0
push eax
mov dword [esp + 0x44], ecx
call esi
push eax
push dword [ebp + 8]
call esi
push eax
call dword [0x100f522c]
mov ecx, dword [esp + 0x54]
or edx, 0xffffffff
test eax, eax
mov edi, 0x1000
cmove ecx, edx
xor eax, eax
xor esi, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edi
test eax, eax
je 0x3695f0f
mov ecx, eax
call fcn.03707920
mov ecx, edi
call fcn.03707780
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], edi
mov ecx, dword [eax + 0x128]
setne al
movzx eax, al
push eax
xor eax, eax
cmp dword [esp + 0x1c], eax
mov edx, dword [ecx]
cmovne eax, dword [ebp + 0x10]
push eax
push 1
push dword [ebp + 0xc]
lea eax, [esp + 0x68]
push edi
push dword [esp + 0x20]
push eax
mov eax, dword [edx + 0xbc]
push 0
push 0
push 0
push dword [esp + 0x64]
call eax
mov dword [esp + 0x14], eax
cmp eax, 0xc0000004
jne 0x3695f7d
mov eax, dword [esp + 0xc]
add edi, 0x1000
jmp 0x3695f00
cmp eax, 0x80000005
jne 0x3695fa0
lea ecx, [esp + 0x20]
call fcn.0362b1d0
mov esi, dword [esp + 0x20]
add edi, 0x1000
mov eax, dword [esp + 0xc]
jmp 0x3695ef8
test eax, eax
jne 0x36962c5
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x3695fc3
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add edi, 0x1000
jmp 0x3695f00
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x3696226
xor edx, edx
xor eax, eax
mov dword [esp + 0xe0], edx
mov edx, dword [ecx + 0x30]
mov dword [esp + 0xe4], eax
cmp edx, 0xffffffff
je 0x369621b
mov ecx, dword [ecx + 0x2c]
cmp ecx, 0xffffffff
je 0x369621b
mov edi, dword [esp + 0xc]
add edx, edi
mov dword [esp + 0x48], edx
movzx edi, word [ecx + edi]
xor ecx, ecx
and edi, 0xfffffffe
mov word [esp + 0x44], di
mov word [esp + 0x46], di
cmp cx, di
jae 0x3696065
movzx eax, di
and eax, 0x800000ff
jns 0x3696034
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esp + 0x44]
sub ecx, eax
add ecx, 0x100
movzx eax, cx
push eax
mov word [esp + 0xe6], cx
lea ecx, [esp + 0xe4]
push 0
call fcn.036c00d0
mov edx, dword [esp + 0x48]
mov dword [esp + 0xe4], eax
movzx ecx, di
push ecx
push edx
push eax
mov word [esp + 0xec], di
call dword [0x1011f348]
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0xe0]
push eax
call fcn.03629ff0
test eax, eax
je 0x36960b9
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0xe8]
mov edi, dword [esp + 0x10]
cmp eax, ecx
mov eax, dword [esp + 0xc]
je 0x3695f04
call fcn.03707920
mov eax, dword [esp + 0xc]
jmp 0x3695f04
cmp dword [ebp + 0x1c], 0
je 0x3696209
push 0x101094ac
lea eax, [esp + 0x50]
push eax
call dword [0x1011f448]
mov ax, word [esp + 0xe0]
mov edi, dword [esp + 0x4c]
cmp ax, di
jb 0x3696209
movzx eax, ax
movzx ecx, di
sub eax, ecx
mov word [esp + 0x70], di
mov ecx, dword [esp + 0xe4]
cdq
sub eax, edx
sar eax, 1
push 1
lea eax, [ecx + eax*2]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x78]
push eax
call dword [0x1011f444]
test eax, eax
jne 0x3696209
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe0]
sub eax, dword [esp + 0x4c]
movzx edi, ax
mov ecx, edi
mov word [esp + 0x60], ax
mov word [esp + 0x2e8], ax
and ecx, 0x800000ff
jns 0x369615a
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [esp + 0x60]
sub eax, ecx
add eax, 0x100
movzx ecx, ax
mov word [esp + 0x2ea], ax
cmp ecx, 0x200
ja 0x3696181
lea eax, [esp + 0x2f0]
jmp 0x3696186
call fcn.03707780
push edi
push dword [esp + 0x18]
mov dword [esp + 0x2f4], eax
push eax
call dword [0x1011f348]
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x2e8]
push eax
push eax
lea eax, [esp + 0x48]
mov ecx, edi
push eax
call fcn.0362b450
mov eax, dword [esp + 0x40]
test eax, eax
je 0x36961c7
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x2ec]
lea eax, [esp + 0x2f0]
cmp eax, ecx
je 0x36961de
call fcn.03707920
lea eax, [esp + 0xe0]
mov ecx, edi
push eax
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0362b450
mov eax, dword [esp + 0x38]
test eax, eax
je 0x3696209
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xe8]
cmp ecx, eax
je 0x3696222
mov ecx, eax
call fcn.03707920
mov edi, dword [esp + 0x5c]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
test edi, edi
je 0x3696247
mov ecx, edi
call fcn.03707780
mov ecx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push ecx
push dword [esp + 0x10]
push eax
call dword [0x1011f348]
mov ecx, 0x10
call fcn.03707780
test eax, eax
je 0x369626f
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.03676a00
jmp 0x3696271
xor eax, eax
mov dword [eax + 4], 0
test esi, esi
jne 0x3696286
mov dword [eax], esi
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x369628f
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x3695f04
call fcn.03707920
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x3695f04
cmp eax, 0x80000006
je 0x36962d3
cmp eax, 0xc000000f
jne 0x36962fd
cmp dword [ebp + 0x1c], 0
jne 0x36962f5
mov edi, esi
test esi, esi
je 0x36962f5
nop
mov ecx, dword [ebp + 0x14]
mov eax, edi
mov edi, dword [edi + 4]
add eax, 8
push eax
call fcn.03676680
test edi, edi
jne 0x36962e0
mov dword [esp + 0x14], 0
test esi, esi
je 0x36964f5
mov dword [esp + 0xa0], 0x1011f690
mov dword [esp + 0xa8], 0x1011f68c
jmp 0x3696320
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x3696414
lea eax, [esp + 0xbc]
mov dword [esp + 0x64], 0
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x33]
push ecx
mov dword [esp + 0x70], 0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x64], 0x1011f690
mov dword [esp + 0x6c], 0x1011f68c
movdqa xmm0, xmmword [esp + 0x64]
mov dword [esp + 0xc0], 0
push eax
mov dword [esp + 0xc8], 0xffffffff
movdqu xmmword [esp + 0xcc], xmm0
call fcn.037039a0
test al, al
je 0x36963a6
mov eax, dword [esp + 0xcc]
inc dword [eax]
mov al, 1
push edi
push 1
push dword [0x1011f2ec]
mov byte [esp + 0xe4], al
call dword [0x100f5100]
cmp byte [esp + 0xd8], 0
je 0x3696406
mov edi, dword [esp + 0xd4]
mov eax, dword [edi + 0x10]
dec dword [eax]
jne 0x3696406
mov eax, dword [edi + 0x10]
push 0
mov dword [eax], 0
push dword [edi + 8]
call dword [0x100f528c]
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jle 0x3696406
push eax
call dword [0x100f5290]
mov eax, dword [edi + 0x14]
push 0
push 1
push eax
call dword [0x100f5288]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea eax, [esp + 0x80]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], eax
lea eax, [esp + 0x32]
push ecx
mov dword [esp + 0xb0], 0
lea ecx, [esp + 0x84]
movdqa xmm0, xmmword [esp + 0xa4]
mov dword [esp + 0x84], 0
push eax
mov dword [esp + 0x8c], 0xffffffff
movdqu xmmword [esp + 0x90], xmm0
call fcn.037039a0
test al, al
je 0x3696481
mov eax, dword [esp + 0x90]
inc dword [eax]
mov al, 1
push esi
push 1
push dword [0x1011f2ec]
mov byte [esp + 0xa8], al
call dword [0x100f5100]
cmp byte [esp + 0x9c], 0
je 0x36964e1
mov esi, dword [esp + 0x98]
mov eax, dword [esi + 0x10]
dec dword [eax]
jne 0x36964e1
mov eax, dword [esi + 0x10]
push 0
mov dword [eax], 0
push dword [esi + 8]
call dword [0x100f528c]
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jle 0x36964e1
push eax
call dword [0x100f5290]
mov eax, dword [esi + 0x14]
push 0
push 1
push eax
call dword [0x100f5288]
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
jne 0x3696320
mov eax, dword [esp + 0x78]
jmp 0x36964f9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x3696504
mov ecx, eax
call fcn.03707920
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x3696541
cmp eax, 0xffffffff
je 0x3696541
mov ecx, dword [0x1011f340]
push eax
test ecx, ecx
je 0x369653b
mov edx, dword [ecx + 0x72c]
add ecx, 0x72c
mov edx, dword [edx + 0x24]
call edx
call eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
call dword [0x100f5250]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18