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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x4fbbfc]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x94]
push edi
xor edi, edi
cmp ebx, 5
mov dword [esp + 0x18], esi
mov dword [esi + 0xfc], edi
jne 0x419df5
mov eax, 3
cmp dword [esi + 0x98], eax
jne 0x419df5
cmp dword [esi + 0x9c], eax
jne 0x419df5
mov dword [esi + 0xfc], 1
mov edx, dword [esi + 0xe8]
mov eax, dword [esi + 0xe4]
mov ecx, edx
shl ecx, 4
sub ecx, edx
sub eax, ecx
cmp eax, 0xf
jle 0x419e14
mov eax, 0xf
cmp dword [esi + 0xfc], edi
mov dword [esi + 0xf0], eax
je 0x419e36
mov eax, 0x40
lea ecx, [eax + 0x12]
mov dword [esi + 0xf0], 8
jmp 0x419e8f
cmp eax, 1
jne 0x419e45
mov eax, 0x100
lea ecx, [eax - 0x72]
jmp 0x419e8f
cmp eax, 2
jne 0x419e54
mov eax, 0xc0
lea ecx, [eax - 0x32]
jmp 0x419e8f
cmp eax, 3
jne 0x419e63
mov eax, 0x80
lea ecx, [eax + 0xe]
jmp 0x419e8f
cmp eax, 4
jne 0x419e72
mov eax, 0x40
lea ecx, [eax + 0x4e]
jmp 0x419e8f
cmp eax, 5
jne 0x419e7e
mov ecx, 0x8e
jmp 0x419e8d
cmp eax, 0xb
mov ecx, 0x52
jl 0x419e8d
mov ecx, 0xc
xor eax, eax
cmp edx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ecx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
je 0x419ec8
add dl, 0x60
mov byte [esp + 0x1c], dl
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
lea eax, [esp + 0x1c]
push eax
movsx eax, byte [ebx + str.agefihk]
add ecx, 1
push ecx
add edx, 1
push edx
push eax
lea ecx, [esp + 0x78]
push str.film__c_02d__02d_s.rmt
push ecx
call fcn.004af177
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi]
mov edx, dword [edx + 0xa8]
add esp, 0x18
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push ecx
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push edi
mov ecx, esi
call edx
mov ecx, dword [esi + 0x88]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push 1
push edi
push edi
push ecx
push 0x1e0
push 0x280
push edi
push edi
mov ecx, eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push edi
mov ecx, esi
call edx
mov ecx, dword [esi + 0x8c]
mov edx, dword [eax]
push edi
push 0xff00
mov edx, dword [edx + 0x5c]
push edi
push edi
push ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xa0]
push ecx
mov ecx, eax
call edx
cmp dword [esi + 0xfc], edi
je 0x419fe3
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push edi
mov ecx, esi
call edx
mov ecx, dword [esi + 0x8c]
push edi
mov edx, dword [eax]
push 0xff00
mov edx, dword [edx + 0x5c]
push edi
push edi
push ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xa4]
add ecx, 0x82
push ecx
mov ecx, dword [esi + 0xa0]
push ecx
mov ecx, eax
call edx
mov eax, dword [esi + 0x78]
cmp dword [esi + 0x74], eax
lea ebx, [esi + 0x70]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], eax
jbe 0x419ffb
call fcn.004af167
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x41a008
call fcn.004af167
cmp edi, dword [esp + 0x14]
je 0x41a023
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x14]
call fcn.0040fc10
mov ecx, dword [esp + 0x20]
mov dword [ecx + 8], eax
mov ebx, ecx
mov edx, str.cgview.area
mov ecx, ebx
call fcn.0040f340
xor ebx, ebx
cmp dword [esi + 0xf0], ebx
jle 0x41a17c
lea edi, [esi + 0xa8]
mov dword [esp + 0x14], edi
cmp dword [esi + 0xfc], 0
je 0x41a0bf
cmp ebx, 4
jl 0x41a0bf
mov edx, ebx
and edx, 0x80000003
jns 0x41a064
dec edx
or edx, 0xfffffffc
inc edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add ecx, 0x90
mov dword [esp + 0x48], ecx
add ecx, 0x5a
shl edx, 7
lea eax, [edx + eax + 4]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
push ecx
lea edx, [esp + 0x5c]
add eax, 0x78
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ebx
call dword [0x4c92a0]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x54]
push eax
call fcn.0040f810
mov ecx, dword [edi - 0x10]
mov esi, dword [esp + 0x18]
mov dword [edi], ecx
jmp 0x41a154
mov eax, 0x66666667
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
imul eax, eax, 0x82
mov ecx, ebx
sub ecx, edx
mov edx, dword [esp + 0xc]
shl ecx, 7
lea ecx, [ecx + edx + 4]
mov edx, dword [esp + 0x10]
lea eax, [eax + edx + 0xe]
mov dword [esp + 0x38], eax
add eax, 0x5a
mov dword [esp + 0x34], ecx
add ecx, 0x78
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x5c], ebx
call dword [0x4c92a0]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x54]
push edx
call fcn.0040f810
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0xe8]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esi + 0x90]
add eax, ebx
lea eax, [eax + eax*2]
lea edi, [ecx + eax*2 + 3]
call fcn.0041ab60
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov edi, edx
push 1
push 0
push ebx
push 0
mov eax, esi
call fcn.00419a90
add ebx, 1
add edi, 4
cmp ebx, dword [esi + 0xf0]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jl 0x41a047
xor edi, edi
mov edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push 0
mov ecx, esi
mov dword [esp + 0x18], 0
call edx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push 5
mov ecx, esi
call edx
test edi, edi
mov dword [esp + 0x20], eax
jne 0x41a1b8
cmp dword [esi + 0xe8], edi
jmp 0x41a1cb
cmp edi, 1
jne 0x41a1d5
mov eax, dword [esi + 0xec]
sub eax, edi
cmp dword [esi + 0xe8], eax
jne 0x41a1d5
mov dword [esp + 0x14], 3
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [esi + 0x88]
mov edx, dword [edx + 0x44]
push 1
push 0x1a8
lea ebx, [edi + edi*2]
shl ebx, 4
lea eax, [ebx + 0xd0]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push 0x1c
push 0x30
push 0x1a8
push eax
mov dword [esp + 0x2c], eax
call edx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x48]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx*4 + 0x1b4]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push 0x1c
push 0x30
push 0x1a8
push eax
call edx
add edi, 1
cmp edi, 2
jl 0x41a180
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push 0
mov ecx, esi
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
push 5
mov ecx, esi
call edx
mov ecx, dword [esi + 0x88]
push 1
push 0x1a8
push 0x148
push ecx
push 0x1c
push 0x60
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
push 0x1a8
push 0x148
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
push 0x208
push 0x60
push ebx
push 0x1c
push 0x60
push 0x1a8
push 0x148
mov ecx, edi
call edx
mov ecx, dword [0x514e34]
mov dword [esi + 0x84], 0xffffffff
xor esi, esi
cmp ecx, esi
jne 0x41a308
push 0x18
call fcn.004ae2dd
add esp, 4
cmp eax, esi
je 0x41a2fa
mov ecx, 1
mov dword [eax], vtable.CDrawManager2D.0
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x14], esi
jmp 0x41a2fc
xor eax, eax
mov ecx, eax
cmp ecx, esi
mov dword [0x514e34], ecx
je 0x41a31b
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0x258
push 0x320
push esi
push esi
call edx
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ae38c
mov esp, ebp
pop ebp
ret