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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47e918
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x58]
cmp byte [ebp + 0xb4c], 0
push esi
push edi
jne 0x439cae
mov ecx, dword [ebp + 0xb1c]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4394b7
lea esp, [esp]
mov edx, dword [eax + 8]
cmp byte [edx + 0x70], 0
jne 0x4395ce
mov eax, dword [eax]
cmp eax, dword [ebp + 0xb1c]
jne 0x4394a0
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov eax, dword [ebp + 0x884]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 8]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
xor eax, eax
test ecx, ecx
setle al
dec eax
and eax, ecx
mov dword [ebp + 0x88c], eax
mov eax, dword [ebp + 0x888]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0xc]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
xor eax, eax
test ecx, ecx
setle al
dec eax
and eax, ecx
mov dword [ebp + 0x890], eax
mov eax, dword [ebp + 0xc58]
mov edx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
sub ecx, dword [esp + 0x44]
cmp byte [esp + 0x64], 0
mov dword [ebp + 0x894], eax
mov dword [ebp + 0x898], ecx
je 0x4395bf
lea edi, [ebp + 0x300]
mov eax, edi
call fcn.0044e4b0
push ebp
call fcn.0041fb30
mov eax, dword [ebp + 0xc34]
mov edx, dword [eax]
push edx
mov ecx, edi
call fcn.00453040
xor ecx, ecx
mov edx, edi
call fcn.004513d0
xor ecx, ecx
mov edx, edi
call fcn.004514f0
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 0x884]
jl 0x43958d
mov ecx, dword [esi + 0xc]
cmp ecx, dword [ebp + 0x888]
jge 0x4395bf
push 0x4a8284
mov ecx, edi
call fcn.004511e0
cmp dword [ebp + 0x7f4], 0xffffffff
jne 0x4395bf
mov edx, dword [ebp + 0x888]
mov eax, dword [ebp + 0x884]
push 0
push 1
push edx
push eax
call fcn.0044d610
mov dword [ebp + 0x7f4], eax
mov ecx, dword [ebp + 0x7f4]
cmp ecx, 0xffffffff
jne 0x4395d5
xor ecx, ecx
jmp 0x439610
mov esi, edx
jmp 0x4394bd
cmp dword [ebp + 0x164], 0
jbe 0x439610
cmp dword [ebp + 0x80c], 0xffffffff
jne 0x43960a
mov ecx, dword [ebp + 0x888]
mov edx, dword [ebp + 0x884]
push 1
push 1
push ecx
push edx
lea edi, [ebp + 0x300]
call fcn.0044d610
mov dword [ebp + 0x80c], eax
mov ecx, dword [ebp + 0x80c]
lea ebx, [ebp + 0x300]
mov edx, ebx
call fcn.004514f0
mov edi, dword [ebp + 0xb1c]
mov esi, dword [edi]
mov byte [ebp + 0x15c], 0
mov byte [ebp + 0xc85], 0
cmp esi, edi
je 0x439676
jmp 0x439640
mov eax, dword [esi + 8]
mov dword [ebp + 0x20c], eax
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x70], 0
je 0x43965e
push 1
mov edx, ecx
push edx
call fcn.00435460
jmp 0x439670
mov eax, ecx
cmp byte [eax + 0x98], 0
je 0x439670
mov byte [ebp + 0xc85], 1
mov esi, dword [esi]
cmp esi, edi
jne 0x439640
mov eax, dword [ebp + 0xb30]
test eax, eax
je 0x439926
cmp dword [eax + 4], 0
je 0x439926
mov edx, dword [ebp]
mov esi, eax
mov eax, dword [edx + 0x268]
mov ecx, ebp
call eax
sub eax, dword [esi + 0x1c]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fidiv dword [esi + 0x18]
fstp dword [esi + 0xc]
mov eax, dword [ebp + 0xb30]
fld dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x10]
mov edx, dword [ecx]
push ecx
fstp dword [esp]
push eax
push ecx
mov ecx, dword [edx + 0x78]
call ecx
mov edx, dword [ebp + 0xb30]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x804]
mov edx, ebx
mov dword [ebp + 0x20c], eax
call fcn.004514f0
mov ecx, dword [ebp + 0xb30]
mov edx, dword [ecx + 4]
push 1
push edx
call fcn.00435460
xor ecx, ecx
mov edx, ebx
call fcn.004513d0
mov eax, dword [ebp + 0xb30]
mov ecx, dword [eax]
mov dword [ebp + 0x20c], ecx
mov ecx, dword [ebp + 0x7f4]
mov edx, ebx
call fcn.004514f0
mov edx, dword [ebp + 0xb30]
mov eax, dword [edx]
push 1
push eax
call fcn.00435460
xor ecx, ecx
mov edx, ebx
call fcn.004513d0
xor ecx, ecx
mov edx, ebx
call fcn.004514f0
mov eax, ebx
mov byte [ebp + 0x15c], 1
call fcn.00450ef0
mov ecx, dword [ebp + 0xb30]
mov esi, dword [ecx + 0x14]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi]
test eax, eax
je 0x439775
mov ecx, dword [ebp + 0x804]
mov ecx, dword [ecx + 0x30]
mov edx, dword [edi]
mov edx, dword [edx + 0xd0]
push ecx
push eax
push edi
call edx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x439792
mov edx, dword [ebp + 0x7f4]
mov edx, dword [edx + 0x30]
mov ecx, dword [edi]
push edx
push eax
mov eax, dword [ecx + 0xd0]
push edi
call eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4397b8
fild dword [ebp + 0x884]
mov ecx, dword [edi]
fld1
mov edx, dword [ecx + 0x78]
fdivrp st(1)
push ecx
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
push edi
call edx
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4397de
fild dword [ebp + 0x888]
mov ecx, dword [edi]
fld1
mov edx, dword [ecx + 0x78]
fdivrp st(1)
push ecx
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
push edi
call edx
mov eax, dword [esi + 0x64]
test eax, eax
je 0x439802
fldz
mov ecx, dword [edi]
push 2
fst dword [esp + 0x1c]
lea edx, [esp + 0x1c]
fstp dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x80]
push edi
call eax
mov esi, dword [esi + 0x68]
fld1
test esi, esi
je 0x439828
mov ecx, dword [edi]
fst dword [esp + 0x18]
mov eax, dword [ecx + 0x80]
fstp dword [esp + 0x1c]
push 2
lea edx, [esp + 0x1c]
push edx
push esi
push edi
call eax
jmp 0x43982a
fstp st(0)
mov ecx, dword [edi]
mov eax, dword [ecx + 0xfc]
push 0
lea edx, [esp + 0x14]
push edx
push edi
call eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x60], 0
jbe 0x4398db
mov edx, dword [esp + 0x60]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x100]
push edx
push edi
call eax
mov ecx, dword [ebp + 0x804]
mov edx, ebx
call fcn.004513d0
fild dword [ebp + 0x88c]
mov ecx, dword [0x4a8280]
mov edx, dword [0x4a827c]
fstp dword [esp + 0x14]
push ecx
fild dword [ebp + 0x890]
push edx
push 0x4a49d0
push ecx
fstp dword [esp + 0x28]
xor esi, esi
fld dword [esp + 0x24]
lea eax, [esp + 0x30]
fstp dword [esp + 0x30]
mov edx, ebx
fld dword [esp + 0x28]
fstp dword [esp + 0x34]
fldz
fstp dword [esp]
call fcn.00452280
mov eax, ebx
call fcn.00450ef0
mov eax, dword [edi]
mov ecx, dword [eax + 0x108]
push edi
call ecx
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x10]
jb 0x43984f
mov edx, dword [edi]
mov eax, dword [edx + 0x10c]
push edi
call eax
mov eax, ebx
call fcn.00450ef0
fld1
mov ecx, dword [ebp + 0xb30]
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 0x41
jp 0x439926
mov eax, dword [ecx]
mov edx, dword [ebp]
mov edx, dword [edx + 0x1f8]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp + 0xb30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x70], 1
mov dword [ebp + 0xb30], 0
cmp byte [esp + 0x64], 0
je 0x439b59
cmp dword [ebp + 0x7f4], 0xffffffff
je 0x439b1b
cmp byte [ebp + 0x15c], 0
jne 0x439b1b
push 0
push ebx
call fcn.0044d430
cmp dword [ebp + 0x164], 0
jbe 0x43997b
mov ecx, dword [ebp + 0x75c]
mov eax, dword [ebp + 0x80c]
cmp ecx, eax
jne 0x43997b
mov edx, dword [ebp + 0x7f4]
push edx
push eax
mov ecx, ebx
call fcn.00451000
mov eax, dword [ebp + 0x744]
test eax, eax
jne 0x439a1b
mov ecx, dword [ebp + 0x7f4]
mov edx, ebx
call fcn.004513d0
xor ecx, ecx
mov edx, ebx
call fcn.004514f0
fild dword [ebp + 0x88c]
mov eax, dword [0x4a8280]
mov ecx, dword [0x4a827c]
fstp dword [esp + 0x64]
push eax
fild dword [ebp + 0x890]
push ecx
push ecx
xor esi, esi
fstp dword [esp + 0x6c]
mov edx, 0x4a49d0
fild dword [ebp + 0x884]
lea ecx, [esp + 0x2c]
fstp dword [esp + 0x24]
fild dword [ebp + 0x888]
fstp dword [esp + 0x20]
fld dword [esp + 0x70]
fst dword [esp + 0x2c]
fld dword [esp + 0x6c]
fst dword [esp + 0x30]
fld dword [esp + 0x24]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fadd dword [esp + 0x20]
fstp dword [esp + 0x38]
fldz
fstp dword [esp]
push ebx
call fcn.00452300
mov edi, ebp
call fcn.00439d30
jmp 0x439b1b
cmp eax, 1
jne 0x439b1b
mov esi, dword [ebp + 0xc34]
mov dword [esp + 0x64], esi
cmp esi, dword [ebp + 0xc38]
je 0x439b1b
jmp 0x439a44
mov esi, dword [esp + 0x64]
mov eax, ebx
call fcn.00450ef0
xor ecx, ecx
mov edx, ebx
call fcn.004513d0
mov edx, dword [esi]
push edx
mov ecx, ebx
call fcn.00453040
xor ecx, ecx
mov edx, ebx
call fcn.004514f0
mov ecx, dword [ebp + 0x7f4]
mov edx, ebx
call fcn.004513d0
fild dword [ebp + 0x88c]
mov eax, dword [0x4a8280]
mov ecx, dword [0x4a827c]
fstp dword [esp + 0x60]
push eax
fild dword [ebp + 0x890]
push ecx
push ecx
xor esi, esi
fstp dword [esp + 0x24]
mov edx, 0x4a49d0
fild dword [ebp + 0x884]
lea ecx, [esp + 0x2c]
fstp dword [esp + 0x20]
fild dword [ebp + 0x888]
fstp dword [esp + 0x1c]
fld dword [esp + 0x6c]
fst dword [esp + 0x2c]
fld dword [esp + 0x24]
fst dword [esp + 0x30]
fld dword [esp + 0x20]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x38]
fldz
fstp dword [esp]
push ebx
call fcn.00452300
mov edi, ebp
call fcn.00439d30
mov eax, dword [ebp + 0xb1c]
mov eax, dword [eax]
mov edx, dword [eax + 8]
push esi
push edx
call fcn.00435460
mov eax, ebx
call fcn.00450ef0
mov eax, dword [esp + 0x64]
add eax, 4
mov dword [esp + 0x64], eax
cmp eax, dword [ebp + 0xc38]
jne 0x439a40
mov eax, ebx
call fcn.00450ef0
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov dword [ebx + 0x4b0], eax
test eax, eax
jge 0x439b59
push eax
lea eax, [esp + 0x24]
push eax
mov edx, str.Could_not_end_scene
call fcn.0044b870
push 0x4979fc
lea ecx, [esp + 0x24]
push ecx
call fcn.004637cb
mov esi, dword [ebp + 0xb54]
mov dword [esp + 0x60], esi
cmp esi, dword [ebp + 0xb58]
je 0x439cae
mov eax, dword [esi]
cmp dword [eax + 0x74], 0
je 0x439c9b
mov eax, dword [eax + 0xd8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
push eax
call edx
mov eax, dword [esp + 0x64]
push eax
mov ecx, ebx
call fcn.00453040
cmp dword [ebp + 0x7f4], 0xffffffff
jne 0x439bc6
mov ecx, dword [ebp + 0x888]
mov edx, dword [ebp + 0x884]
push 0
push 1
push ecx
push edx
mov edi, ebx
call fcn.0044d610
mov dword [ebp + 0x7f4], eax
mov eax, ebx
call fcn.0044e4b0
mov ecx, dword [ebp + 0x7f4]
mov edx, ebx
call fcn.004514f0
mov eax, dword [esi]
mov dword [ebp + 0x20c], eax
mov ecx, dword [esi]
push 1
push ecx
call fcn.00435460
mov ecx, dword [ebp + 0x7f4]
cmp ecx, 0xffffffff
je 0x439c6e
mov edx, ebx
call fcn.004513d0
xor ecx, ecx
mov edx, ebx
call fcn.004514f0
cmp dword [ebx + 0x460], 0
je 0x439cc3
mov eax, dword [ebx + 0x460]
fld dword [eax + 0x10]
mov edx, dword [0x4a82d8]
fldz
push edx
fadd st(1), st(0)
xor esi, esi
fxch st(1)
mov edx, 0x4a49d0
fstp dword [esp + 0x1c]
fadd dword [eax + 0x14]
mov eax, dword [0x4a82d4]
push eax
push ecx
fstp dword [esp + 0x20]
lea ecx, [esp + 0x2c]
fldz
fst dword [esp + 0x2c]
fst dword [esp + 0x30]
fld dword [esp + 0x24]
fstp dword [esp + 0x34]
fld dword [esp + 0x20]
fstp dword [esp + 0x38]
fstp dword [esp]
push ebx
call fcn.00452300
mov esi, dword [esp + 0x60]
mov eax, ebx
call fcn.00450ef0
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov edi, eax
mov dword [ebx + 0x4b0], edi
test edi, edi
jl 0x439ce6
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add esi, 4
mov dword [esp + 0x60], esi
cmp esi, dword [ebp + 0xb58]
jne 0x439b6f
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 8
push 0x80004005
lea eax, [esp + 0x24]
push eax
mov edx, str.Cant_draw_a_quad_using_this_overload_with_no_texture_set
call fcn.0044b870
push 0x4979fc
lea ecx, [esp + 0x24]
push ecx
call fcn.004637cb
push 0x13
push str.Could_not_end_scene
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00414d30
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], 0xffffffff
push 0x4979fc
lea edx, [esp + 0x24]
push edx
call fcn.004637cb
int3