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

Disassembly:
push 0xffffffffffffffff
push 0x4ccd76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x5c88a4]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [eax + 0x80]
mov dword [ebx + 4], ecx
call fcn.00485730
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
call fcn.004072d0
push 2
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.004860c0
push 0x230
call fcn.004b7e62
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov dword [esp + 0x60], edi
je 0x4857b2
mov ecx, eax
call fcn.0040ad90
mov ecx, eax
jmp 0x4857b4
xor ecx, ecx
mov eax, dword [esp + 0x68]
or ebp, 0xffffffff
cmp eax, 1
mov dword [esp + 0x60], ebp
mov dword [ebx + 0x28], ecx
jne 0x4857ce
call fcn.0040c7a0
jmp 0x4857f7
cmp eax, 2
jne 0x4857da
call fcn.0040d140
jmp 0x4857f7
cmp eax, 3
jne 0x4857e6
call fcn.0040cbe0
jmp 0x4857f7
cmp eax, 0x63
jne 0x4857f2
call fcn.0040d8a0
jmp 0x4857f7
call fcn.0040d580
push 0x230
call fcn.004b7e62
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, edi
mov dword [esp + 0x60], 1
je 0x48581d
mov ecx, eax
call fcn.0040ad90
jmp 0x48581f
xor eax, eax
mov ecx, eax
mov dword [esp + 0x60], ebp
mov dword [ebx + 0x60], eax
call fcn.0040d8a0
xor ecx, ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x48], ecx
lea esi, [ebx + 0x20]
mov dword [esp + 0x4c], ecx
push edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], 0x10000
mov dword [esp + 0x54], 0x242
mov dword [esp + 0x58], 0xc0
mov edx, dword [eax]
push esi
push ecx
push eax
call dword [edx + 0x14]
mov edi, eax
test edi, edi
jge 0x485893
push str.D:o2jamDisplayDXNTexture.cpp
push ebp
push str.m_pd3dDevice__CreateVertexBuffer_Failed
push edi
call fcn.00489cd0
add esp, 0x10
mov eax, edi
jmp 0x485ac4
mov esi, dword [esi]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, dword [esi]
push 0
push esi
call dword [edx + 0xc]
xor edx, edx
mov eax, 0x4de928
mov ebp, 3
mov ecx, dword [esp + 0x10]
xor esi, esi
mov si, word [eax]
add eax, 2
shl esi, 5
lea edi, [edx + ecx]
add esi, 0x4de828
mov ecx, 8
add edx, 0x20
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4858b0
cmp eax, 0x4de934
jl 0x4858ab
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [edx + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x1c], eax
mov edx, dword [esp + 0x10]
mov ecx, 0x3f800000
mov dword [edx + 0x30], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x34], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x38], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x3c], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x50], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x54], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x58], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x5c], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x70], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x74], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x78], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x7c], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x90], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x94], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x98], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x9c], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0xb0], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0xb4], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0xb8], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0xbc], ecx
mov eax, dword [ebx + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov ecx, dword [ebx + 0x28]
call fcn.0040fd60
mov edx, dword [eax + 8]
mov ecx, dword [eax]
sub edx, ecx
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax + 4]
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
sub ecx, ebp
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0x68], ecx
mov dword [esp + 0x1c], 0x3f800000
fmul dword [str._n:_n]
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x30]
fild dword [esp + 0x68]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
sub esp, 0xc
fmul dword [str._n:_n]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov ecx, ebx
mov dword [edx + 8], eax
call fcn.00410860
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, ebx
call fcn.004108a0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, ebx
call fcn.00410880
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov ecx, ebx
mov dword [edx + 8], eax
call fcn.00410940
mov ecx, dword [ebx + 0x20]
push ecx
mov ecx, ebx
call fcn.00485e50
xor eax, eax
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 4