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

Disassembly:
sub esp, 0x6dc
push ebx
push ebp
mov ebp, dword [esp + 0x6e8]
mov ebx, ecx
push esi
xor eax, eax
mov dword [esp + 0xa8], 0
push edi
mov dword [esp + 0xa8], eax
lea ecx, [esp + 0xa8]
mov eax, dword [ebx]
push ecx
push ebp
mov ecx, ebx
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jne 0x369803e
lea eax, [esp + 0x10]
push eax
push 0x38
lea eax, [esp + 0x78]
push eax
push edi
push ebp
call fcn.036e35e0
mov edi, eax
test edi, edi
jne 0x369803e
mov esi, dword [0x100f5260]
push eax
push eax
push 0x130089
lea eax, [esp + 0x20]
push eax
call esi
push eax
push ebp
call esi
push eax
call fcn.036e0120
mov edi, eax
cmp edi, 0xc0000022
jne 0x3697c38
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
push eax
push ebp
call esi
push eax
call fcn.036e0120
mov edi, eax
test edi, edi
je 0x3697c40
jmp 0x369803e
test edi, edi
jne 0x369803e
push 5
push 0x18
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x24]
call fcn.036de660
mov edi, eax
test edi, edi
jne 0x369803e
cmp byte [esp + 0x6d], al
je 0x3697d04
mov esi, dword [esp + 0x6f4]
lea eax, [esp + 0xa8]
push 1
push esi
push eax
mov ecx, ebx
call fcn.03698070
test eax, eax
jne 0x3697cf4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push 8
push eax
call dword [0x1011f44c]
push edi
push edi
push 0x20
push 1
push 7
push edi
push edi
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], 0x18
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], edi
push eax
mov eax, dword [esp + 0x98]
or eax, 0x100002
mov dword [esp + 0x58], 0x40
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x58], esi
push eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.036dd770
push dword [esp + 0x10]
mov ecx, dword [ebx + 0x124]
push ebp
call fcn.03682f00
push dword [esp + 0x14]
call fcn.036de710
xor edi, edi
jmp 0x369803e
push 0xe
push 8
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x24]
call fcn.036de660
mov edi, eax
test edi, edi
jne 0x369803e
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov eax, dword [esp + 0x6f4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.0368ee60
lea eax, [esp + 0xa8]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], edi
push eax
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call fcn.036deb50
mov edi, eax
test edi, edi
jne 0x369803e
mov dword [esp + 0x1c], eax
mov ecx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
push ebp
call dword [eax + 0x24]
test eax, eax
je 0x3697ddf
lea ecx, [edi + 8]
call fcn.03707780
test eax, eax
je 0x3697dd3
mov dword [eax + 4], ebx
mov ecx, dword [ebx + 0x130]
mov dword [eax], ecx
mov dword [ebx + 0x130], 1
jmp 0x3697dd5
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.036a0580
push dword [0x1011e8a0]
mov esi, dword [0x100f5268]
call esi
inc eax
push eax
push dword [0x1011e8a0]
call dword [0x100f5264]
push 8
lea eax, [esp + 0x24]
push eax
call dword [0x1011f44c]
mov eax, dword [esp + 0x6f4]
push 0
push 0
push 0x60
push 2
push 7
push dword [esp + 0x84]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0x18
push eax
mov eax, dword [esp + 0x98]
or eax, 0x100002
mov dword [esp + 0x50], 0
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x5c], 0x40
push eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.036dd770
push dword [0x1011e8a0]
mov edi, eax
call esi
dec eax
push eax
push dword [0x1011e8a0]
mov eax, dword [0x100f5264]
call eax
lea ecx, [esp + 0x10]
call fcn.036a05b0
test edi, edi
jne 0x369803e
mov ecx, 0x400000
call fcn.03707780
push edi
mov edi, dword [0x100f5124]
mov esi, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], esi
push eax
push 0x400000
push esi
push dword [esp + 0x24]
mov dword [esp + 0x38], 0x400000
call edi
test eax, eax
je 0x3697f02
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x3697f02
push 0
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
push dword [esp + 0x2c]
call dword [0x100f5240]
push 0
lea eax, [esp + 0x14]
push eax
push 0x400000
push esi
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x3697ed0
lea ecx, [esp + 0x20]
call fcn.036294a0
push 0xe
push 8
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x2c]
call fcn.036de5b0
mov edi, eax
test edi, edi
jne 0x369803e
push 0xd
push 1
lea eax, [esp + 0x23]
mov byte [esp + 0x23], 1
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x24]
call fcn.036de5b0
push dword [esp + 0x14]
call fcn.036de710
push dword [esp + 0x1c]
mov ecx, dword [ebx + 0x124]
push ebp
call fcn.03682f00
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.03679290
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xa8]
push eax
push 4
mov ecx, esi
call fcn.03679330
push dword [esp + 0x6f4]
mov ecx, esi
push 5
call fcn.03679330
lea ecx, [esp + 0x4e0]
mov dword [esp + 0x2dc], edi
push ecx
xor eax, eax
lea ecx, [esp + 0x2dc]
push ecx
push dword [esp + 0xb4]
mov dword [esp + 0x2e4], eax
mov ecx, ebx
push dword [esp + 0xb4]
mov dword [esp + 0x4f4], eax
mov dword [esp + 0x4f0], eax
mov eax, dword [ebx]
call dword [eax + 0x38]
mov eax, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x13c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x2d8]
mov edx, dword [ecx]
push esi
shr eax, 1
push eax
lea eax, [esp + 0x28]
push eax
call dword [edx + 0x44]
mov ecx, dword [esp + 0x4e4]
lea eax, [esp + 0x4e8]
cmp eax, ecx
je 0x369801d
call fcn.03707920
mov ecx, dword [esp + 0x2dc]
lea eax, [esp + 0x2e0]
cmp eax, ecx
je 0x3698034
call fcn.03707920
test esi, esi
je 0x369803e
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0xb0]
cmp eax, ecx
je 0x3698055
call fcn.03707920
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6dc
ret 8