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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x44], edi
lea eax, [edi + 0x18]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esi + 0x118]
call fcn.00408990
mov ebx, dword [esp + 0x88]
add ebx, 0x18
mov dword [esp + 0x48], ebx
mov eax, dword [ebx]
or eax, dword [ebx + 4]
jne 0x40373e
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x40373e
push dword [ebp + 0xc]
mov edx, dword [edi + 0x18]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00403510
add esp, 8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x403764
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
jb 0x403752
mov eax, dword [eax]
push eax
push ecx
call fcn.0042ea5f
add esp, 8
test eax, eax
jne 0x403bf6
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x403776
cmp dword [edi + 0x18], ecx
jne 0x403bf6
cmp byte [eax + 0x2a], 0
je 0x40378c
cmp byte [ebx + 0x28], 0
jne 0x40378c
mov byte [ebx + 0x28], 1
inc dword [esi + 0x120]
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [ebx + 0x20]
call fcn.00408a20
mov ebx, dword [esp + 0x88]
push edi
lea ecx, [ebx + 0x18]
call fcn.0040a930
mov eax, dword [esi + 0x114]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x403ba9
cmp dword [edi + 0x40], 1
je 0x4037d4
mov eax, dword [esi]
cmp byte [eax + 0x27], 0
jne 0x403ba9
mov eax, dword [ebx + 0x40]
cmp eax, 1
jbe 0x403ba9
dec eax
lea ecx, [ebx + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.004054b0
mov ecx, eax
call fcn.00405470
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x40380b
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
dec edx
and edx, dword [ecx + 8]
lea ecx, [ebx + 0x30]
mov edi, dword [eax + edx*4]
mov eax, dword [ebx + 0x40]
add eax, 0xfffffffe
mov dword [esp + 0x3c], edi
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004054b0
mov ecx, eax
call fcn.00405470
mov dword [esp + 0x50], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x40384e
mov ecx, dword [ecx]
mov eax, dword [edi + 4]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
call fcn.0043f5a0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
movsd qword [esp + 0x60], xmm0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov edx, dword [edi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edi]
sub ecx, dword [eax]
sbb edx, dword [eax + 4]
call fcn.0043f5a0
mulsd xmm0, qword [0x44b408]
mov ecx, dword [edi + 0x30]
mov eax, ecx
mov edx, dword [edi + 0x34]
or eax, edx
divsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x88], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x68], xmm0
jne 0x4038c2
movsd qword [esp + 0x50], xmm0
jmp 0x4038e6
sub ecx, dword [edi]
sbb edx, dword [edi + 4]
call fcn.0043f5a0
movaps xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x44b408]
divsd xmm1, qword [esp + 0x60]
movsd qword [esp + 0x50], xmm1
mov edi, dword [edi + 0x40]
cmp edi, 1
jne 0x403919
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x38]
sub ecx, dword [edx]
mov edx, dword [edx + 0x3c]
sbb edx, dword [esp + 0x58]
call fcn.0043f5a0
mulsd xmm0, qword [0x44b408]
divsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x58], xmm0
jmp 0x40391f
movsd qword [esp + 0x58], xmm0
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x28]
call fcn.0043f5a0
mulsd xmm0, qword [0x44b408]
divsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x78], xmm0
cmp edi, 1
jne 0x4039ae
mov eax, dword [ebx + 0x54]
cmp eax, edi
jbe 0x4039ae
add eax, 0xfffffffe
lea ecx, [ebx + 0x44]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.004054b0
mov ecx, eax
call fcn.00405470
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x403978
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edx + 0x38]
mov edx, dword [edx + 0x3c]
sub ecx, dword [eax + 0x38]
sbb edx, dword [eax + 0x3c]
call fcn.0043f5a0
mulsd xmm0, qword [0x44b408]
divsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
sub ecx, dword [esi + 8]
mov edx, dword [edx + 4]
sbb edx, dword [esi + 0xc]
call fcn.0043f5e0
mov eax, dword [esi]
movaps xmm1, xmm0
divsd xmm1, qword [esp + 0x60]
cmp byte [eax + 0x28], 0
jne 0x403b0c
sub edi, 1
je 0x4039f5
sub edi, 2
je 0x4039eb
mov dword [esp + 0x40], 0x449af4
jmp 0x4039fd
mov dword [esp + 0x40], str.Error
jmp 0x4039fd
mov dword [esp + 0x40], str.0123456789ABDEFGHIJKLMNOPQRSTUVWXY
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x1c]
dec eax
cmp eax, 8
ja case.default.0x403a0a
jmp dword [eax*4 + 0x403c00]
mov eax, str.Hardware:_Legacy_Flip
jmp 0x403a55
mov eax, str.Hardware:_Legacy_Copy_to_front_buffer
jmp 0x403a55
mov eax, str.Hardware:_Direct_Flip
jmp 0x403a55
mov eax, str.Hardware:_Independent_Flip
jmp 0x403a55
mov eax, str.Composed:_Flip
jmp 0x403a55
mov eax, str.Composed:_Copy_with_GPU_GDI
jmp 0x403a55
mov eax, str.Composed:_Copy_with_CPU_GDI
jmp 0x403a55
mov eax, str.Composed:_Composition_Atlas
jmp 0x403a55
mov eax, str.Hardware_Composed:_Independent_Flip
jmp 0x403a55
mov eax, str.Other
mov edi, dword [esp + 0x44]
mov ecx, dword [edi + 0x24]
sub ecx, 0
je 0x403a74
sub ecx, 1
je 0x403a6d
mov esi, str.Other
jmp 0x403a79
mov esi, str.D3D9
jmp 0x403a79
mov esi, str.DXGI
mov ecx, dword [esp + 0x48]
add ecx, 8
cmp dword [ecx + 0x14], 0x10
jb 0x403a88
mov ecx, dword [ecx]
movsd xmm0, qword [esp + 0x58]
sub esp, 0x30
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push dword [esp + 0x70]
push eax
push dword [edx + 0x14]
movzx eax, byte [edx + 0x20]
push eax
push dword [edx + 0x10]
push esi
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 0x18]
push ecx
push str._s__d_0x_016llX__s__d__d__d__s__s__.6lf__.3lf__.3lf__.3lf__.3lf__.3lf_n
push dword [esp + 0xa8]
call fcn.004010b0
add esp, 0x60
jmp 0x403ba9
sub edi, 1
je 0x403b24
sub edi, 2
je 0x403b1d
mov esi, 0x449af4
jmp 0x403b29
mov esi, str.Error
jmp 0x403b29
mov esi, str.0123456789ABDEFGHIJKLMNOPQRSTUVWXY
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x24]
sub eax, 0
je 0x403b48
sub eax, 1
je 0x403b41
mov edx, str.Other
jmp 0x403b4d
mov edx, str.D3D9
jmp 0x403b4d
mov edx, str.DXGI
mov ecx, dword [esp + 0x48]
add ecx, 8
cmp dword [ecx + 0x14], 0x10
jb 0x403b5c
mov ecx, dword [ecx]
movsd xmm0, qword [esp + 0x78]
sub esp, 0x18
mov eax, dword [esp + 0x54]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push edx
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 0x18]
push ecx
push str._s__d_0x_016llX__s__d__d__s__.6lf__.3lf__.3lf_n
push dword [esp + 0x88]
call fcn.004010b0
add esp, 0x40
mov esi, dword [ebp + 0x14]
lea eax, [ebx + 0x44]
sub esp, 8
push esi
push dword [ebp + 0x10]
push eax
call fcn.0040a870
sub esp, 8
lea eax, [ebx + 0x30]
push esi
push dword [ebp + 0x10]
push eax
call fcn.0040a870
mov eax, dword [ebp + 8]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x5c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret