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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x548
call fcn.00492450
mov edi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x403e
xor eax, eax
test edi, edi
setne al
mov dword [esp + 4], 0x573220
mov dword [esp], eax
call fcn.00493590
mov dword [esp], 0
mov ecx, 0x55db00
mov eax, edi
mov edx, 8
call fcn.004af180
test eax, eax
je 0x4cea44
mov esi, eax
mov eax, dword [eax]
lea edx, [ebp - 0x4c8]
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [eax + 0x2c]
sub esp, 8
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4048
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_get_Direct3D3_interface__hr__lx._n
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [ebp - 0x4c8]
lea ecx, [ebp - 0x4cc]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x55dc10
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x404a
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x57647c
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [esi]
lea edx, [ebp - 0x4d4]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x3c]
sub esp, 8
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x404d
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x576204
mov dword [esp], ebx
call fcn.00493590
mov dword [esp], 0x280
xor ecx, ecx
xor edx, edx
mov dword [esp + 4], 0x1e0
mov eax, esi
call fcn.004935b0
mov dword [ebp - 0x52c], eax
mov ebx, eax
mov eax, dword [esi]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0x30]
sub esp, 8
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4050
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_current_viewport__hr__lx._n
mov dword [esp], ebx
call fcn.00493590
mov eax, esi
call fcn.004939b0
mov edx, dword [ebp - 0x4d4]
mov dword [ebp - 0x4d0], eax
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [ecx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x4054
call fcn.00492d60
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x57354c
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [ebp - 0x4d0]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebp - 0x530], edi
mov dword [ebp - 0x51c], 0x57aae0
sub esp, 4
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x4f4], 0
nop
mov ebx, dword [ebp - 0x51c]
xor eax, eax
mov ecx, 0x1b
lea edi, [ebp - 0x4a4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4b4], 0x7c
mov dword [ebp - 0x4b0], 0x1007
mov edx, dword [ebx + 4]
mov dword [ebp - 0x44c], 0x24000
cmp edx, 1
mov dword [ebp - 0x520], edx
sbb eax, eax
mov dword [ebp - 0x45c], edx
mov dword [ebp - 0x46c], 0x20
and eax, 0xffffc000
mov dword [ebp - 0x4a8], 0x280
add eax, 0x4400
mov dword [ebp - 0x468], eax
mov eax, dword [ebx]
mov dword [ebp - 0x4ac], 0x1e0
mov dword [ebp - 0x460], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x50c], eax
mov eax, dword [ebx + 0xc]
lea ebx, [ebp - 0x4d0]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x4cc]
mov edx, dword [eax]
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x4b4]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0x10
test eax, eax
js 0x4cea17
mov eax, dword [ebp - 0x4d4]
mov ecx, dword [ebp - 0x4d0]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x406f
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x573520
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [esi]
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x4d4]
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 0x38]
sub esp, 0xc
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4071
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x5769f4
mov dword [esp], ebx
call fcn.00493590
mov ebx, dword [ebp - 0x52c]
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x10], 0xff0000ff
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x555820
mov dword [esp + 4], 1
call dword [eax + 0x50]
sub esp, 0x1c
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4075
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x577547
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x24]
sub esp, 4
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4077
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x576280
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [esi]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x5557e0
mov dword [esp + 8], 0x42
mov dword [esp + 4], 5
mov dword [esp], esi
call dword [eax + 0x70]
sub esp, 0x18
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4079
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x5762a1
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 0x28]
sub esp, 4
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x407b
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x5762bc
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [ebp - 0x50c]
mov dword [ebp - 0x500], 1
mov dword [ebp - 0x4e0], 0x3c
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x524], esi
mov eax, dword [ebp - 0x4e0]
fild dword [ebp - 0x4e0]
mov dword [ebp - 0x4dc], 0x50
add eax, 1
mov dword [ebp - 0x510], eax
fstp qword [ebp - 0x518]
mov eax, dword [ebp - 0x4dc]
mov ecx, 0x1e
lea edi, [ebp - 0x4b0]
mov dword [ebp - 0x4b4], 0x7c
lea esi, [ebp - 0x4b4]
mov dword [ebp - 0x4c4], eax
add eax, 1
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x510]
mov dword [ebp - 0x4b8], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4d0]
mov edx, dword [eax]
mov dword [esp + 8], esi
lea esi, [ebp - 0x4c4]
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x11
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 0x14
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4086
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x571ca4
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [ebp - 0x490]
fild dword [ebp - 0x4dc]
fmul qword [0x57df10]
fld qword [ebp - 0x518]
fmul qword [0x57df18]
mov edi, dword [ebp - 0x50c]
and edi, dword [eax]
fnstcw word [ebp - 0x4d6]
faddp st(1)
movzx eax, word [ebp - 0x4d6]
fild qword [ebp - 0x508]
or ah, 0xc
mov word [ebp - 0x4d8], ax
fmulp st(1)
mov eax, dword [ebp - 0x51c]
fldcw word [ebp - 0x4d8]
fistp qword [ebp - 0x4e8]
fldcw word [ebp - 0x4d6]
mov eax, dword [eax + 0x10]
mov esi, dword [ebp - 0x4e8]
fild qword [ebp - 0x508]
fmul dword [0x57df20]
fldcw word [ebp - 0x4d8]
fistp qword [ebp - 0x4e8]
fldcw word [ebp - 0x4d6]
mov edx, esi
sub edx, edi
test eax, eax
mov eax, edi
mov ebx, dword [ebp - 0x4e8]
jne 0x4ce9e0
mov dword [ebp - 0x4e8], 0
sub eax, esi
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4ec], edx
call fcn.0054f6e0
mov edx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x4e8]
or ecx, edx
mov edx, dword [ebp - 0x4ec]
cmp edi, esi
mov dword [ebp - 0x4ec], edi
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x4e8], edx
cmovb eax, edx
mov dword [ebp - 0x4f0], eax
jmp 0x4ce667
mov eax, 1
mov ecx, dword [ebp - 0x4e0]
mov dword [esp + 0x20], ecx
mov edi, dword [ebp - 0x4dc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x4e8]
mov dword [esp + 0x10], ecx
mov edi, dword [ebp - 0x4ec]
mov dword [esp + 0xc], edi
mov ecx, dword [ebp - 0x4f4]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x579040
call fcn.00493590
call fcn.0054f6e0
shr dword [eax + 0x10], 1
call fcn.0054f6e0
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
je 0x4ce770
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x4092
mov eax, dword [ebp - 0x4f0]
cmp ebx, eax
jae 0x4ce610
mov edx, dword [str.windows]
mov edi, dword [ebp - 0x4cc]
mov dword [esp + 4], 0x571ab2
mov dword [esp], edx
mov dword [ebp - 0x4f8], edx
call dword [sym.imp.msvcrt.dll_strcmp]
mov edx, dword [ebp - 0x4f8]
test eax, eax
jne 0x4ce970
mov dword [esp + 4], 0x571ab2
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_strcmp]
test eax, eax
jne 0x4ce6f0
xor eax, eax
jmp 0x4ce615
mov eax, dword [edi]
lea edx, [ebp - 0x438]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call dword [eax + 0x6c]
sub esp, 0xc
mov edi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x7e
mov eax, edi
not eax
mov dword [esp + 8], edi
shr eax, 0x1f
mov dword [esp + 4], 0x5733dc
mov dword [esp], eax
call fcn.00493590
test edi, edi
js 0x4ce6e4
cmp dword [ebp - 0x30], 0x1002
jne 0x4ce6e4
mov eax, dword [ebp - 0x520]
test eax, eax
sete dl
xor eax, eax
cmp dword [ebp - 0x50c], 0xffffff
sete al
and eax, edx
jmp 0x4ce615
mov edi, dword [ebp - 0x4ec]
mov edx, dword [ebp - 0x4e8]
cmp edi, esi
cmovae edx, dword [ebp - 0x4fc]
xor eax, eax
lea esi, [ebp - 0x4c4]
cmp ebx, edx
cmovae eax, dword [ebp - 0x500]
mov dword [ebp - 0x500], eax
mov eax, dword [ebp - 0x4d0]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
sub esp, 8
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x409a
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x571cc8
mov dword [esp], ebx
call fcn.00493590
add dword [ebp - 0x4dc], 0xa0
mov eax, dword [ebp - 0x4dc]
cmp eax, 0x2d0
jne 0x4ce46f
add dword [ebp - 0x4e0], 0x78
mov eax, dword [ebp - 0x4e0]
cmp eax, 0x21c
jne 0x4ce44a
mov eax, dword [ebp - 0x4d4]
mov ecx, dword [ebp - 0x4d0]
cmp dword [ebp - 0x500], 1
mov esi, dword [ebp - 0x524]
mov edx, dword [eax]
sbb dword [ebp - 0x528], 0xffffffff
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x40a2
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], 0x57354c
mov dword [esp], ebx
call fcn.00493590
mov eax, dword [ebp - 0x4d0]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add dword [ebp - 0x4f4], 1
mov eax, dword [ebp - 0x4f4]
add dword [ebp - 0x51c], 0x14
cmp eax, 5
jne 0x4ce180
mov edi, dword [ebp - 0x530]
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x40a6
mov dword [esp + 4], 0x579088
mov eax, dword [ebp - 0x528]
mov dword [esp], eax
call fcn.00493590
mov edx, dword [ebp - 0x52c]
mov eax, esi
call fcn.00493950
mov eax, dword [ebp - 0x4d4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x4cc]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x4c8]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [esi]
sub esp, 4
mov dword [esp], esi
call dword [eax + 8]
sub esp, 4
mov ebx, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x40ad
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x571f6c
mov dword [esp], eax
call fcn.00493590
mov dword [esp], edi
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [edi]
lea edx, [ebp - 0x438]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0
call dword [eax + 0x6c]
sub esp, 0xc
mov edi, eax
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x7e
mov eax, edi
not eax
mov dword [esp + 8], edi
shr eax, 0x1f
mov dword [esp + 4], 0x5733dc
mov dword [esp], eax
call fcn.00493590
test edi, edi
js 0x4ce9cd
cmp dword [ebp - 0x30], 0x10de
je 0x4ce610
mov edi, dword [ebp - 0x4cc]
mov edx, dword [str.windows]
jmp 0x4ce6cf
mov dword [ebp - 0x4e8], 0
sub eax, esi
cmp edi, esi
mov dword [ebp - 0x4fc], eax
cmovb eax, edx
cmp ebx, eax
jae 0x4ce5c3
mov ecx, dword [0x628750]
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 0x4e8], eax
jmp 0x4ce5c3
call fcn.0054f6e0
mov dword [eax], 0x571ae8
mov dword [eax + 4], 0x406a
mov eax, dword [ebp - 0x4f4]
mov dword [esp], 0x579014
mov dword [esp + 4], eax
call fcn.00492ff0
jmp 0x4ce889
mov eax, 0x4042
call fcn.00492d60
mov dword [esp], 0x577f78
call fcn.00492ff0
mov dword [esp], edi
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
jmp 0x4ce95a