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

Disassembly:
push 0xffffffffffffffff
push 0x48121c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx + 8]
push ebp
mov ebp, dword [ebx + 4]
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x78]
mov edi, dword [ecx]
add edi, 0x1684
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], eax
call fcn.00454900
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
cmp dword [ecx + 0x164], 0
mov edx, dword [esp + 0x84]
mov dword [esp + 0x14], edx
jbe 0x436450
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x7c], ecx
cmp ecx, ebx
je 0x436450
mov edi, edi
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x436445
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x1b94]
jne 0x436418
mov ecx, dword [eax + 0x1b7c]
mov eax, dword [eax + 0x1b94]
jmp 0x43642c
cmp edx, dword [eax + 0x1b98]
jne 0x436445
mov ecx, dword [eax + 0x1b80]
mov eax, dword [eax + 0x1b98]
mov edx, dword [esp + 0x88]
push edx
push ecx
mov dword [esp + 0x1c], ecx
push eax
mov ecx, edi
call fcn.00454090
mov ecx, dword [esp + 0x7c]
add ecx, 0x18
mov dword [esp + 0x7c], ecx
cmp ecx, ebx
jne 0x4363f0
mov eax, dword [esi + 8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
fild dword [eax + 0x10]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x58], ecx
fstp dword [esp + 0x7c]
mov ecx, dword [esi + 0xc]
fild dword [eax + 0x14]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x64], ecx
fstp dword [esp + 0x2c]
mov ebx, 1
fld dword [esi]
fld dword [esp + 0x7c]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esi + 4]
fld dword [esp + 0x2c]
fld st(0)
fdivp st(2)
mov dword [esp + 0x2c], edx
fxch st(1)
fstp dword [esp + 0x4c]
fld dword [esi + 8]
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x50]
fdivr dword [esi + 0xc]
fstp dword [esp + 0x54]
cmp ebp, dword [esp + 0x18]
je 0x436a4d
mov eax, dword [ebp]
cmp dword [eax + 0x20], 0
jne 0x4364de
cmp dword [eax + 0x24], 0
mov byte [esp + 0x7c], 1
je 0x4364e3
mov byte [esp + 0x7c], 0
mov eax, dword [esp + 0x18]
add eax, 0xffffffe8
mov dword [esp + 0x28], 0
cmp ebp, eax
jne 0x436526
cmp byte [esp + 0x7c], 0
je 0x436526
mov ecx, dword [esp + 0x84]
mov edx, edi
call fcn.004545a0
push 0
push edi
call fcn.0044fdb0
mov esi, dword [esp + 0x78]
xor eax, eax
test ebx, ebx
sete al
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x436570
mov esi, dword [esp + 0x78]
mov ecx, dword [esi]
mov ecx, dword [ecx + ebx*4 + 0x1b88]
mov edx, edi
call fcn.004545a0
push 0
push edi
call fcn.0044fdb0
mov edx, dword [esi]
mov eax, dword [edx + ebx*4 + 0x1b88]
mov edx, dword [esp + 0x88]
xor ecx, ecx
test ebx, ebx
sete cl
push 0x4ab2dc
push edx
mov dword [esp + 0x30], eax
mov ebx, ecx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00454260
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0x6c
mov dword [esp + 0x24], ecx
call fcn.00453b10
mov dword [esp + 0x3c], eax
xor edx, edx
mov dword [esp + 0x70], edx
cmp eax, edx
je 0x4365c5
mov ecx, dword [ebp]
mov dword [eax], vtable.cr::CBatchBase.0
mov dword [eax + 4], edi
mov dword [eax + 8], 0xc
mov byte [esp + 0x70], 1
mov dword [eax + 0xc], ecx
lea ecx, [eax + 0x10]
mov dword [eax], vtable.cr::CBatchX_FX_Begin.0
mov dword [esp + 0x1c], ecx
mov dword [ecx + 0x50], edx
mov dword [ecx + 0x54], edx
mov dword [ecx + 0x58], edx
mov byte [esp + 0x70], dl
jmp 0x4365c7
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [ebp]
cmp dword [ecx + 0x2c], edx
je 0x4365ea
mov ecx, dword [esi]
mov ecx, dword [ecx + ebx*4 + 0x1b88]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp]
cmp dword [ecx + 0x28], edx
je 0x4365fc
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp]
cmp dword [ecx + 0x30], edx
je 0x436611
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp]
cmp dword [ecx + 0x34], edx
je 0x436636
mov ecx, dword [esi]
cmp ebp, dword [esp + 0x34]
jne 0x436629
mov ecx, dword [ecx + 0x1b80]
jmp 0x436630
mov ecx, dword [ecx + ebx*4 + 0x1b88]
mov ecx, dword [ecx + 0x30]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp]
cmp dword [ecx + 0x38], edx
je 0x436644
fld qword [esi + 0x68]
fstp dword [eax + 0x20]
mov ecx, dword [ebp]
cmp dword [ecx + 0x3c], edx
mov ecx, dword [esp + 0x8c]
je 0x436658
fld dword [ecx]
fstp dword [eax + 0x24]
mov ebx, dword [ebp]
cmp dword [ebx + 0x40], edx
je 0x436666
fld dword [ecx + 4]
fstp dword [eax + 0x28]
mov ebx, dword [ebp]
cmp dword [ebx + 0x44], edx
je 0x436674
fld dword [ecx + 8]
fstp dword [eax + 0x2c]
mov ebx, dword [ebp]
cmp dword [ebx + 0x48], edx
je 0x436682
fld dword [ecx + 0xc]
fstp dword [eax + 0x30]
mov ebx, dword [ebp]
cmp dword [ebx + 0x4c], edx
je 0x436692
fld dword [ecx + 8]
fsub dword [ecx]
fstp dword [eax + 0x34]
mov ebx, dword [ebp]
cmp dword [ebx + 0x50], edx
je 0x4366a3
fld dword [ecx + 0xc]
fsub dword [ecx + 4]
fstp dword [eax + 0x38]
mov ebx, dword [ebp]
cmp dword [ebx + 0x54], edx
je 0x4366bd
fld dword [esp + 0x90]
fdiv dword [esi + 0x9c]
fadd dword [ecx]
fstp dword [eax + 0x3c]
mov ebx, dword [ebp]
cmp dword [ebx + 0x58], edx
je 0x4366d8
fld dword [esp + 0x94]
fdiv dword [esi + 0xa0]
fadd dword [ecx + 4]
fstp dword [eax + 0x40]
mov ecx, dword [ebp]
cmp dword [ecx + 0x5c], edx
je 0x4366e9
fild dword [esi + 0x10]
fdivr qword [esi + 0x40]
fstp dword [eax + 0x44]
mov ecx, dword [ebp]
cmp dword [ecx + 0x60], edx
je 0x4366fa
fild dword [esi + 0x14]
fdivr qword [esi + 0x48]
fstp dword [eax + 0x48]
mov ecx, dword [ebp]
cmp dword [ecx + 0x64], edx
je 0x436714
fild dword [esi + 0x10]
fdivr qword [esi + 0x30]
fstp dword [eax + 0x4c]
fild dword [esi + 0x14]
fdivr qword [esi + 0x38]
fstp dword [eax + 0x50]
mov ecx, dword [ebp]
cmp dword [ecx + 0x68], edx
je 0x436724
fld1
fst dword [eax + 0x54]
fstp dword [eax + 0x58]
mov ebx, dword [ebp + 0xc]
mov ebp, dword [ebp + 0x10]
mov dword [esp + 0x3c], ebp
cmp ebx, ebp
je 0x4367ae
mov ecx, dword [ebx]
cmp ecx, 5
je 0x43673e
cmp ecx, 9
jne 0x4367a5
mov ecx, dword [eax + 0x60]
fld dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
fstp dword [esp + 0x44]
lea esi, [eax + 0x5c]
mov dword [esp + 0x40], edx
test ecx, ecx
jne 0x43675a
xor eax, eax
jmp 0x436762
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 3
mov ebp, dword [esi + 8]
mov edx, ebp
sub edx, ecx
sar edx, 3
cmp edx, eax
jae 0x436796
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x38]
push eax
push ecx
push 1
push ebp
lea edx, [esp + 0x50]
call fcn.004236d0
add esp, 0x10
add ebp, 8
mov dword [esi + 8], ebp
jmp 0x4367a1
push ebp
push esi
lea ecx, [esp + 0x48]
call fcn.0042fd50
mov eax, dword [esp + 0x1c]
add ebx, 0x18
cmp ebx, dword [esp + 0x3c]
jne 0x436732
mov esi, dword [edi + 0x1d8]
lea ebx, [edi + 0x1d4]
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x4367c6
xor ecx, ecx
jmp 0x4367ce
mov ecx, dword [ebx + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [ebx + 8]
mov ebp, edx
sub ebp, esi
sar ebp, 2
cmp ebp, ecx
jae 0x4367e6
mov dword [edx], eax
add edx, 4
mov dword [ebx + 8], edx
jmp 0x4367f4
lea eax, [esp + 0x3c]
push eax
push 1
push edx
push ebx
call fcn.004531d0
push 0x14
call fcn.00453b10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], 4
xor ecx, ecx
cmp eax, ecx
je 0x436839
mov dword [eax], vtable.cr::CBatchBase.0
mov dword [eax + 4], edi
mov dword [eax + 8], 0xd
mov byte [esp + 0x70], 5
mov edx, dword [esp + 0x20]
mov dword [eax], vtable.cr::CBatchX_FX_BeginPass.0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov byte [esp + 0x70], 4
jmp 0x43683b
xor eax, eax
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [ebx + 4]
mov dword [esp + 0x3c], eax
cmp esi, ecx
je 0x436856
mov ecx, dword [ebx + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [ebx + 8]
mov ebp, edx
sub ebp, esi
sar ebp, 2
cmp ebp, ecx
jae 0x43686e
mov dword [edx], eax
add edx, 4
mov dword [ebx + 8], edx
jmp 0x43687c
lea eax, [esp + 0x3c]
push eax
push 1
push edx
push ebx
call fcn.004531d0
mov ecx, dword [esp + 0x2c]
mov edx, edi
call fcn.00454480
fldz
mov ecx, dword [0x4ab74c]
mov edx, dword [0x4ab748]
push ecx
push edx
push ecx
fstp dword [esp]
push edi
lea edx, [esp + 0x58]
mov esi, 0x4a79c8
lea ecx, [esp + 0x68]
call fcn.00455370
push 0x10
call fcn.00453b10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], 6
test eax, eax
je 0x4368ee
mov dword [eax], vtable.cr::CBatchBase.0
mov dword [eax + 4], edi
mov dword [eax + 8], 0xe
mov byte [esp + 0x70], 7
mov ecx, dword [esp + 0x20]
mov dword [eax], vtable.cr::CBatchX_FX_EndPass.0
mov dword [eax + 0xc], ecx
mov byte [esp + 0x70], 6
jmp 0x4368f0
xor eax, eax
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [ebx + 4]
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x436907
xor ecx, ecx
jmp 0x43690f
mov ecx, dword [ebx + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [ebx + 8]
mov ebp, edx
sub ebp, esi
sar ebp, 2
cmp ebp, ecx
jae 0x436927
mov dword [edx], eax
add edx, 4
mov dword [ebx + 8], edx
jmp 0x436935
lea eax, [esp + 0x3c]
push eax
push 1
push edx
push ebx
call fcn.004531d0
push 0x10
call fcn.00453b10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], 8
test eax, eax
je 0x436975
mov dword [eax], vtable.cr::CBatchBase.0
mov dword [eax + 4], edi
mov dword [eax + 8], 0xf
mov byte [esp + 0x70], 9
mov ecx, dword [esp + 0x20]
mov dword [eax], vtable.cr::CBatchX_FX_End.0
mov dword [eax + 0xc], ecx
mov byte [esp + 0x70], 8
jmp 0x436977
xor eax, eax
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [ebx + 4]
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x43698e
xor ecx, ecx
jmp 0x436996
mov ecx, dword [ebx + 0xc]
sub ecx, esi
sar ecx, 2
mov edx, dword [ebx + 8]
mov ebp, edx
sub ebp, esi
sar ebp, 2
cmp ebp, ecx
jae 0x4369ae
mov dword [edx], eax
add edx, 4
mov dword [ebx + 8], edx
jmp 0x4369bc
lea eax, [esp + 0x3c]
push eax
push 1
push edx
push ebx
call fcn.004531d0
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
add eax, 0xffffffe8
cmp ebp, eax
jne 0x436a30
cmp byte [esp + 0x7c], 0
jne 0x436a30
mov ecx, dword [esp + 0x84]
mov edx, edi
call fcn.004545a0
push 0
push edi
call fcn.0044fdb0
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
xor ecx, ecx
test ebx, ebx
sete cl
mov edx, edi
mov ecx, dword [eax + ecx*4 + 0x1b88]
call fcn.00454480
fldz
mov ecx, dword [0x4ab74c]
mov edx, dword [0x4ab748]
push ecx
push edx
push ecx
fstp dword [esp]
push edi
lea edx, [esp + 0x58]
mov esi, 0x4a79c8
lea ecx, [esp + 0x68]
call fcn.00455370
jmp 0x436a34
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add ebp, 0x18
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
cmp ebp, dword [esp + 0x18]
jne 0x4364ca
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0x20