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

Disassembly:
sub esp, 0x788
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x784], eax
push ebx
push esi
mov esi, dword [esp + 0x794]
push edi
cmp dword [esi + 0x68], 0x10
lea ebx, [esi + 0x54]
jb 0x65dd8a
mov ebx, dword [esi + 0x54]
mov eax, dword [esi + 0x64]
mov dword [esp + 0x58], eax
test eax, eax
je 0x65e57a
lea eax, [esi + 0xc0]
mov dword [esp + 0x98], 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x68]
lea eax, [esp + 0x18]
mov dword [esp + 0xa8], 0
push eax
mov dword [esp + 0xb0], 0xf
mov word [esp + 0x24], 0x104
call fcn.00407009
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004087e2
add esp, 8
lea ecx, [esp + 0x68]
cmp dword [esp + 0x7c], 0x10
mov edi, eax
cmovae ecx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
cmp dword [edi + 0x24], 0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
je 0x65e533
lea eax, [esp + 0x18]
mov word [esp + 0x2c], 0x105
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xb0]
lea eax, [esp + 0x24]
push eax
call fcn.00407009
push eax
mov eax, dword [edi + 0x24]
call eax
mov edx, dword [esp + 0xc8]
add esp, 4
mov dword [esp + 0x14], eax
cmp edx, 0x10
jb 0x65de83
mov ecx, dword [esp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65de75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65de75
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x65e533
lea ecx, [esp + 0xe0]
call fcn.0040289c
cmp dword [esp + 0x7c], 0x10
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
je 0x65e481
lea eax, [esp + 0x18]
mov word [esp + 0x2c], 0x105
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xb0]
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00407009
push eax
push dword [esp + 0x1c]
mov eax, dword [edi + 0x18]
call eax
mov edx, dword [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x10], eax
cmp edx, 0x10
jb 0x65df36
mov ecx, dword [esp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65df28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65df28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x65e481
cmp dword [esp + 0x7c], 0x10
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
cmp dword [edi + 0x28], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
je 0x65e477
push 0
push 0x9236bc
lea eax, [esp + 0x20]
mov word [esp + 0x34], 0x105
push 0
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xbc]
push 0x9236bc
lea eax, [esp + 0x34]
push eax
call fcn.00407009
push eax
mov eax, dword [edi + 0x28]
call eax
mov edx, dword [esp + 0xd8]
add esp, 0x14
mov dword [esp + 0xc], eax
cmp edx, 0x10
jb 0x65dfdf
mov ecx, dword [esp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65dfd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65dfd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x65e477
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x65e46b
call eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x65e46b
lea ecx, [esp + 0x200]
call fcn.0040eb33
push 1
push 0
push 0
lea eax, [esp + 0x20c]
push eax
push dword [esp + 0x24]
lea ecx, [esp + 0x3c0]
push dword [esp + 0x24]
call fcn.00408873
push 0
lea eax, [esp + 0x3b0]
push eax
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x210]
call fcn.00401410
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040399f
push esi
lea ecx, [esp + 0x14c]
movups xmm0, xmmword [eax]
lea eax, [esp + 0x3b0]
push eax
movups xmmword [esp + 0x3a4], xmm0
call fcn.00409683
mov eax, dword [edi + 0x58]
test eax, eax
je 0x65e08b
lea ecx, [esp + 0x148]
push ecx
call eax
add esp, 4
push 1
sub esp, 8
mov eax, esp
push dword [esp + 0x64]
mov dword [eax], 0x9236bc
mov dword [eax + 4], 0
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00409e3f
add esp, 0x18
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x65e0c7
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [esp + 0x5c]
mov dword [esp + 0x48], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], 0
call fcn.00409ee4
lea ecx, [esp + 0x5c]
call fcn.0041550f
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x3b8]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00405ad3
mov ebx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [edi + 0x34]
add esp, 0x14
test eax, eax
je 0x65e1a8
lea ecx, [esp + 0xe0]
push ecx
push dword [esp + 0x38]
push esi
push ebx
call eax
mov edi, eax
add esp, 0x10
test edi, edi
je 0x65e1a8
mov edx, dword [esi]
mov ecx, esi
push 0
call dword [edx + 0x20]
push edi
mov ecx, esi
call fcn.0040fba0
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x65e1a0
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x7a4]
call dword [esp + 0x7a4]
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
test esi, esi
je 0x65e1b4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x65e274
mov edi, dword [esp + 0x48]
cmp esi, edi
je 0x65e217
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x65e1fb
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x65e1f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65e56a
mov eax, edx
push ecx
push eax
call fcn.004036ca
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x65e1c8
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x65e252
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65e56a
push ecx
push esi
call fcn.004036ca
add esp, 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x65e2f2
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x65e296
mov ecx, esi
call fcn.0041550f
add esi, 0xc
cmp esi, edi
jne 0x65e284
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x65e2d0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65e56a
push ecx
push esi
call fcn.004036ca
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x1fc]
mov ecx, dword [esp + 0x1f0]
test eax, eax
je 0x65e389
mov edi, eax
shl edi, 4
add edi, ecx
cmp ecx, edi
je 0x65e389
lea esi, [ecx + 0xc]
mov eax, dword [esi - 0xc]
cmp eax, 0xfffff000
je 0x65e371
cmp eax, 0xffffe000
je 0x65e371
mov eax, dword [esi - 8]
test eax, eax
je 0x65e371
mov ecx, dword [esi]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x65e353
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65e56a
mov eax, edx
push ecx
push eax
call fcn.004036ca
mov dword [esi - 8], 0
add esp, 8
mov dword [esi - 4], 0
mov dword [esi], 0
add esi, 0x10
lea eax, [esi - 0xc]
cmp eax, edi
jne 0x65e316
mov eax, dword [esp + 0x1fc]
mov ecx, dword [esp + 0x1f0]
push 4
shl eax, 4
push eax
push ecx
call fcn.00415398
add esp, 0xc
cmp dword [esp + 0x1e0], 0
je 0x65e3d9
mov edi, dword [esp + 0x1dc]
xor esi, esi
test edi, edi
je 0x65e3d9
nop
mov eax, dword [esp + 0x1d8]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x65e3d4
cmp ecx, 0xfffffffc
je 0x65e3d4
mov eax, dword [ecx]
push 4
add eax, 9
push eax
push ecx
call fcn.00415398
add esp, 0xc
inc esi
cmp esi, edi
jne 0x65e3b0
push dword [esp + 0x1d8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [esp + 0x148]
call fcn.0040eb6f
lea ecx, [esp + 0x3ac]
call fcn.00408201
mov edx, dword [esp + 0x380]
cmp edx, 0x10
jb 0x65e43d
mov ecx, dword [esp + 0x36c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65e433
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65e56a
push edx
push ecx
call fcn.004036ca
add esp, 8
push 0x18
push dword [esp + 0x38]
mov dword [esp + 0x384], 0
mov dword [esp + 0x388], 0xf
mov byte [esp + 0x374], 0
call fcn.004036ca
add esp, 8
jmp 0x65e46f
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [esp + 0x10]
push 1
mov eax, dword [ecx]
call dword [eax]
lea ecx, [esp + 0x13c]
call fcn.00402167
mov edx, dword [esp + 0x12c]
cmp edx, 0x10
jb 0x65e4c9
mov ecx, dword [esp + 0x118]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65e4bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x65e56a
push edx
push ecx
call fcn.004036ca
add esp, 8
lea ecx, [esp + 0x100]
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0xf
mov byte [esp + 0x118], 0
call fcn.0040aeed
lea ecx, [esp + 0xe8]
call fcn.0040aeed
mov ebx, dword [esp + 0x14]
push 4
mov eax, dword [ebx + 0x7c]
shl eax, 3
push eax
push dword [ebx + 0x70]
call fcn.00415398
mov eax, dword [ebx + 0x6c]
push 4
shl eax, 3
push eax
push dword [ebx + 0x60]
call fcn.00415398
push 0x80
push ebx
call fcn.004036ca
add esp, 0x20
lea ecx, [esp + 0x68]
call fcn.00401505
mov edx, dword [esp + 0xac]
cmp edx, 0x10
jb 0x65e57a
mov ecx, dword [esp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65e570
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65e570
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov ecx, dword [esp + 0x790]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x788
ret